|
@@ -3215,7 +3215,7 @@ if ($action == 'create') {
|
|
|
if (empty($conf->global->INVOICE_DISABLE_DEPOSIT)) {
|
|
|
print '<div class="tagtr listofinvoicetype"><div class="tagtd listofinvoicetype">';
|
|
|
$tmp = '<input type="radio" id="radio_deposit" name="type" value="3"'.(GETPOST('type') == 3 ? ' checked' : '').'> ';
|
|
|
- print '<script type="text/javascript" language="javascript">
|
|
|
+ print '<script type="text/javascript">
|
|
|
jQuery(document).ready(function() {
|
|
|
jQuery("#typestandardinvoice, #valuestandardinvoice").click(function() {
|
|
|
jQuery("#radio_standard").prop("checked", true);
|
|
@@ -3329,7 +3329,7 @@ if ($action == 'create') {
|
|
|
$tmp .= ' disabled';
|
|
|
}
|
|
|
$tmp .= '> ';
|
|
|
- print '<script type="text/javascript" language="javascript">
|
|
|
+ print '<script type="text/javascript">
|
|
|
jQuery(document).ready(function() {
|
|
|
jQuery("#fac_replacement").change(function() {
|
|
|
jQuery("#radio_replacement").prop("checked", true);
|
|
@@ -3418,7 +3418,7 @@ if ($action == 'create') {
|
|
|
}
|
|
|
$tmp .= '> ';
|
|
|
// Show credit note options only if we checked credit note
|
|
|
- print '<script type="text/javascript" language="javascript">
|
|
|
+ print '<script type="text/javascript">
|
|
|
jQuery(document).ready(function() {
|
|
|
if (! jQuery("#radio_creditnote").is(":checked"))
|
|
|
{
|
|
@@ -3493,7 +3493,7 @@ if ($action == 'create') {
|
|
|
$jsListType .= (!empty($jsListType) ? ',' : '').'"'.$type.'":"'.$curent.'"';
|
|
|
}
|
|
|
|
|
|
- print '<script type="text/javascript" language="javascript">
|
|
|
+ print '<script type="text/javascript">
|
|
|
$(document).ready(function() {
|
|
|
var listType = {'.$jsListType.'};
|
|
|
$("[name=\'type\'").change(function() {
|
|
@@ -3581,7 +3581,7 @@ if ($action == 'create') {
|
|
|
$form->select_conditions_paiements($retained_warranty_fk_cond_reglement, 'retained_warranty_fk_cond_reglement', -1, 1);
|
|
|
print '</td></tr>';
|
|
|
|
|
|
- print '<script type="text/javascript" language="javascript">
|
|
|
+ print '<script type="text/javascript">
|
|
|
$(document).ready(function() {
|
|
|
$("[name=\'type\']").change(function() {
|
|
|
if($( this ).prop("checked") && $.inArray($( this ).val(), '.json_encode($retainedWarrantyInvoiceAvailableType).' ) !== -1)
|