diff --git a/htdocs/adherents/card_subscriptions.php b/htdocs/adherents/card_subscriptions.php
index 369027b1e14..3aedb6fe50c 100644
--- a/htdocs/adherents/card_subscriptions.php
+++ b/htdocs/adherents/card_subscriptions.php
@@ -873,7 +873,7 @@ if ($rowid)
}
});
';
- if (GETPOST('paymentsave')) print '$("#'.GETPOST('paymentsave').'").attr("checked",true);';
+ if (GETPOST('paymentsave')) print '$("#'.GETPOST('paymentsave').'").prop("checked",true);';
print '});';
print ''."\n";
}
diff --git a/htdocs/admin/const.php b/htdocs/admin/const.php
index 6b63ba74c6b..55434d4de2e 100644
--- a/htdocs/admin/const.php
+++ b/htdocs/admin/const.php
@@ -165,7 +165,7 @@ jQuery(document).ready(function() {
var row_num = field_id.split("_");
jQuery("#updateconst").show();
jQuery("#action").val('update');
- jQuery("#check_" + row_num[1]).attr("checked",true);
+ jQuery("#check_" + row_num[1]).prop("checked",true);
});
});
diff --git a/htdocs/admin/mails.php b/htdocs/admin/mails.php
index 159c03589b1..2b50008d58a 100644
--- a/htdocs/admin/mails.php
+++ b/htdocs/admin/mails.php
@@ -271,12 +271,12 @@ if ($action == 'edit')
{
jQuery(".drag").hide();
jQuery("#MAIN_MAIL_EMAIL_TLS").val(0);
- jQuery("#MAIN_MAIL_EMAIL_TLS").attr(\'disabled\', \'disabled\');
+ jQuery("#MAIN_MAIL_EMAIL_TLS").prop("disabled", true);
';
if ($linuxlike)
{
- print ' jQuery("#MAIN_MAIL_SMTP_SERVER").attr(\'disabled\', \'disabled\');';
- print ' jQuery("#MAIN_MAIL_SMTP_PORT").attr(\'disabled\', \'disabled\');';
+ print ' jQuery("#MAIN_MAIL_SMTP_SERVER").prop("disabled", true);';
+ print ' jQuery("#MAIN_MAIL_SMTP_PORT").prop("disabled", true);';
}
print '
}
@@ -284,9 +284,9 @@ if ($action == 'edit')
{
jQuery(".drag").show();
jQuery("#MAIN_MAIL_EMAIL_TLS").val('.$conf->global->MAIN_MAIL_EMAIL_TLS.');
- jQuery("#MAIN_MAIL_EMAIL_TLS").removeAttr(\'disabled\');
- jQuery("#MAIN_MAIL_SMTP_SERVER").removeAttr(\'disabled\');
- jQuery("#MAIN_MAIL_SMTP_PORT").removeAttr(\'disabled\');
+ jQuery("#MAIN_MAIL_EMAIL_TLS").removeAttr("disabled");
+ jQuery("#MAIN_MAIL_SMTP_SERVER").removeAttr("disabled");
+ jQuery("#MAIN_MAIL_SMTP_PORT").removeAttr("disabled");
}
}
initfields();
diff --git a/htdocs/admin/menus/edit.php b/htdocs/admin/menus/edit.php
index 9ded9ae1f34..4ab41c7991e 100644
--- a/htdocs/admin/menus/edit.php
+++ b/htdocs/admin/menus/edit.php
@@ -255,12 +255,12 @@ if ($action == 'create')
{
if (jQuery("#topleft").val() == \'top\')
{
- jQuery("#menuId").attr(\'disabled\',\'disabled\');
+ jQuery("#menuId").prop("disabled", true);
jQuery("#menuId").val(\'\');
}
else
{
- jQuery("#menuId").removeAttr(\'disabled\');
+ jQuery("#menuId").removeAttr("disabled");
}
}
init_topleft();
diff --git a/htdocs/admin/tools/dolibarr_export.php b/htdocs/admin/tools/dolibarr_export.php
index 842efb3a0ac..671a9bf9eba 100644
--- a/htdocs/admin/tools/dolibarr_export.php
+++ b/htdocs/admin/tools/dolibarr_export.php
@@ -96,7 +96,7 @@ jQuery(document).ready(function() {
jQuery("#select_sql_compat").click(function() {
if (jQuery("#select_sql_compat").val() == 'POSTGRESQL')
{
- jQuery("#checkbox_dump_disable-add-locks").attr('checked',true);
+ jQuery("#checkbox_dump_disable-add-locks").prop('checked',true);
}
});
diff --git a/htdocs/barcode/printsheet.php b/htdocs/barcode/printsheet.php
index 1a518b1859c..36d9117eefe 100644
--- a/htdocs/barcode/printsheet.php
+++ b/htdocs/barcode/printsheet.php
@@ -313,28 +313,28 @@ jQuery(document).ready(function() {
{
if (jQuery("#fillmanually:checked").val() == "fillmanually")
{
- jQuery("#submitproduct").attr(\'disabled\',\'disabled\');
- jQuery("#submitthirdparty").attr(\'disabled\',\'disabled\');
- jQuery("#search_productid").attr(\'disabled\',\'disabled\');
- jQuery("#socid").attr(\'disabled\',\'disabled\');
+ jQuery("#submitproduct").prop("disabled", true);
+ jQuery("#submitthirdparty").prop("disabled", true);
+ jQuery("#search_productid").prop("disabled", true);
+ jQuery("#socid").prop("disabled", true);
jQuery(".showforproductselector").hide();
jQuery(".showforthirdpartyselector").hide();
}
if (jQuery("#fillfromproduct:checked").val() == "fillfromproduct")
{
- jQuery("#submitproduct").removeAttr(\'disabled\');
- jQuery("#submitthirdparty").attr(\'disabled\',\'disabled\');
- jQuery("#search_productid").removeAttr(\'disabled\');
- jQuery("#socid").attr(\'disabled\',\'disabled\');
+ jQuery("#submitproduct").removeAttr("disabled");
+ jQuery("#submitthirdparty").prop("disabled", true);
+ jQuery("#search_productid").removeAttr("disabled");
+ jQuery("#socid").prop("disabled", true);
jQuery(".showforproductselector").show();
jQuery(".showforthirdpartyselector").hide();
}
if (jQuery("#fillfromthirdparty:checked").val() == "fillfromthirdparty")
{
- jQuery("#submitproduct").attr(\'disabled\',\'disabled\');
- jQuery("#submitthirdparty").removeAttr(\'disabled\');
- jQuery("#search_productid").attr(\'disabled\',\'disabled\');
- jQuery("#socid").removeAttr(\'disabled\');
+ jQuery("#submitproduct").prop("disabled", true);
+ jQuery("#submitthirdparty").removeAttr("disabled");
+ jQuery("#search_productid").prop("disabled", true);
+ jQuery("#socid").removeAttr("disabled");
jQuery(".showforproductselector").hide();
jQuery(".showforthirdpartyselector").show();
}
@@ -348,11 +348,11 @@ jQuery(document).ready(function() {
{
if (jQuery("#select_fk_barcode_type").val() > 0 && jQuery("#forbarcode").val())
{
- jQuery("#submitformbarcodegen").removeAttr(\'disabled\');
+ jQuery("#submitformbarcodegen").removeAttr("disabled");
}
else
{
- jQuery("#submitformbarcodegen").attr(\'disabled\',\'disabled\');
+ jQuery("#submitformbarcodegen").prop("disabled", true);
}
}
init_gendoc_button();
diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php
index a4adb2a74b6..eb88215fa20 100644
--- a/htdocs/comm/action/card.php
+++ b/htdocs/comm/action/card.php
@@ -570,11 +570,11 @@ if ($action == 'create')
$(".fulldayendmin").removeAttr("disabled");
$("#p2").removeAttr("disabled");
} else {
- $(".fulldaystarthour").attr("disabled","disabled").val("00");
- $(".fulldaystartmin").attr("disabled","disabled").val("00");
- $(".fulldayendhour").attr("disabled","disabled").val("23");
- $(".fulldayendmin").attr("disabled","disabled").val("59");
- $("#p2").removeAttr("disabled");
+ $(".fulldaystarthour").prop("disabled", true).val("00");
+ $(".fulldaystartmin").prop("disabled", true).val("00");
+ $(".fulldayendhour").prop("disabled", true).val("23");
+ $(".fulldayendmin").prop("disabled", true).val("59");
+ $("#p2").removeAttr("disabled");
}
}
setdatefields();
@@ -841,10 +841,10 @@ if ($id > 0)
$(".fulldayendhour").removeAttr("disabled");
$(".fulldayendmin").removeAttr("disabled");
} else {
- $(".fulldaystarthour").attr("disabled","disabled").val("00");
- $(".fulldaystartmin").attr("disabled","disabled").val("00");
- $(".fulldayendhour").attr("disabled","disabled").val("23");
- $(".fulldayendmin").attr("disabled","disabled").val("59");
+ $(".fulldaystarthour").prop("disabled", true).val("00");
+ $(".fulldaystartmin").prop("disabled", true).val("00");
+ $(".fulldayendhour").prop("disabled", true).val("23");
+ $(".fulldayendmin").prop("disabled", true).val("59");
}
}
setdatefields();
diff --git a/htdocs/commande/orderstoinvoice.php b/htdocs/commande/orderstoinvoice.php
index 513e295a913..55797308fb2 100644
--- a/htdocs/commande/orderstoinvoice.php
+++ b/htdocs/commande/orderstoinvoice.php
@@ -512,10 +512,10 @@ if (($action != 'create' && $action != 'add') || !$error)
diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php
index 777ed1f3bd6..556da5db0ce 100644
--- a/htdocs/compta/facture.php
+++ b/htdocs/compta/facture.php
@@ -2099,7 +2099,7 @@ if ($action == 'create')
print '';
@@ -2154,7 +2154,7 @@ if ($action == 'create')
print '';
@@ -2200,7 +2200,7 @@ if ($action == 'create')
// Show credit note options only if we checked credit note
print '
diff --git a/htdocs/compta/paiement/cheque/card.php b/htdocs/compta/paiement/cheque/card.php
index 6b218d52430..dba17a4798c 100644
--- a/htdocs/compta/paiement/cheque/card.php
+++ b/htdocs/compta/paiement/cheque/card.php
@@ -414,11 +414,11 @@ if ($action == 'new')
{
jQuery("#checkall_'.$bid.'").click(function()
{
- jQuery(".checkforremise_'.$bid.'").attr(\'checked\', true);
+ jQuery(".checkforremise_'.$bid.'").prop(\'checked\', true);
});
jQuery("#checknone_'.$bid.'").click(function()
{
- jQuery(".checkforremise_'.$bid.'").attr(\'checked\', false);
+ jQuery(".checkforremise_'.$bid.'").prop(\'checked\', false);
});
});
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index be6714cdb1f..2b8912245d5 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -4356,7 +4356,7 @@ class Form
';
}
- $out.='