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/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/commande/orderstoinvoice.php b/htdocs/commande/orderstoinvoice.php
index 39253325716..1203a987abf 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 1aaca07b57d..e3e753ab7eb 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/tpl/objectline_create.tpl.php b/htdocs/core/tpl/objectline_create.tpl.php
index 0d18cd9b8b5..9c6cfd2e1be 100644
--- a/htdocs/core/tpl/objectline_create.tpl.php
+++ b/htdocs/core/tpl/objectline_create.tpl.php
@@ -583,8 +583,8 @@ function setforfree() {
jQuery("#idprod").val('');
jQuery("#idprodfournprice").val('0'); // Set cursor on not selected product
jQuery("#search_idprodfournprice").val('');
- jQuery("#prod_entry_mode_free").attr('checked',true);
- jQuery("#prod_entry_mode_predef").attr('checked',false);
+ jQuery("#prod_entry_mode_free").prop('checked',true);
+ jQuery("#prod_entry_mode_predef").prop('checked',false);
jQuery("#price_ht").show();
jQuery("#price_ttc").show(); // May no exists
jQuery("#tva_tx").show();
@@ -601,8 +601,8 @@ function setforfree() {
}
function setforpredef() {
jQuery("#select_type").val(-1);
- jQuery("#prod_entry_mode_free").attr('checked',false);
- jQuery("#prod_entry_mode_predef").attr('checked',true);
+ jQuery("#prod_entry_mode_free").prop('checked',false);
+ jQuery("#prod_entry_mode_predef").prop('checked',true);
jQuery("#price_ht").hide();
jQuery("#title_up_ht").hide();
jQuery("#price_ttc").hide(); // May no exists
diff --git a/htdocs/fourn/commande/orderstoinvoice.php b/htdocs/fourn/commande/orderstoinvoice.php
index d35d318d4a2..a18031de4d4 100644
--- a/htdocs/fourn/commande/orderstoinvoice.php
+++ b/htdocs/fourn/commande/orderstoinvoice.php
@@ -386,10 +386,10 @@ if (($action != 'create' && $action != 'add') || ! empty($mesgs)) {
diff --git a/htdocs/install/fileconf.php b/htdocs/install/fileconf.php
index 1256c5b215a..7df38b46d61 100644
--- a/htdocs/install/fileconf.php
+++ b/htdocs/install/fileconf.php
@@ -487,8 +487,8 @@ jQuery(document).ready(function() {
function init_needroot()
{
- /*alert(jQuery("#db_create_database").attr("checked")); */
- if (jQuery("#db_create_database").attr("checked") || jQuery("#db_create_user").attr("checked"))
+ /*alert(jQuery("#db_create_database").prop("checked")); */
+ if (jQuery("#db_create_database").prop("checked") || jQuery("#db_create_user").prop("checked"))
{
jQuery(".hideroot").show();
jQuery(".needroot").removeAttr('disabled');
diff --git a/htdocs/user/card.php b/htdocs/user/card.php
index 0320f44916e..77352b630f1 100644
--- a/htdocs/user/card.php
+++ b/htdocs/user/card.php
@@ -822,7 +822,7 @@ if (($action == 'create') || ($action == 'adduserldap'))
if ( $(this).val() == 0 ) {
$("input[name=superadmin]")
.attr("disabled", true)
- .attr("checked", false);
+ .prop("checked", false);
$("select[name=entity]")
.attr("disabled", false);
} else {
@@ -831,7 +831,7 @@ if (($action == 'create') || ($action == 'adduserldap'))
}
});
$("input[name=superadmin]").change(function() {
- if ( $(this).attr("checked") == "checked" ) {
+ if ( $(this).prop("checked", true) ) {
$("select[name=entity]")
.attr("disabled", true);
} else {
@@ -1823,9 +1823,9 @@ else
if (admin == 0) {
$("input[name=superadmin]")
.attr("disabled", true)
- .attr("checked", false);
+ .prop("checked", false);
}
- if ($("input[name=superadmin]").attr("checked") == "checked") {
+ if ($("input[name=superadmin]").prop("checked", true)) {
$("select[name=entity]")
.attr("disabled", true);
}
@@ -1833,7 +1833,7 @@ else
if ( $(this).val() == 0 ) {
$("input[name=superadmin]")
.attr("disabled", true)
- .attr("checked", false);
+ .prop("checked", false);
$("select[name=entity]")
.attr("disabled", false);
} else {
@@ -1842,7 +1842,7 @@ else
}
});
$("input[name=superadmin]").change(function() {
- if ( $(this).attr("checked") == "checked" ) {
+ if ( $(this).prop("checked", true)) {
$("select[name=entity]")
.attr("disabled", true);
} else {
diff --git a/htdocs/user/param_ihm.php b/htdocs/user/param_ihm.php
index 4f8259bc007..77e03728af6 100644
--- a/htdocs/user/param_ihm.php
+++ b/htdocs/user/param_ihm.php
@@ -155,11 +155,11 @@ if ($action == 'edit')
print '';