[Qual] Use jQuery 'is' instead of 'prop' in conditions
This commit is contained in:
parent
d5565fffc1
commit
932e23ac09
@ -2200,7 +2200,7 @@ if ($action == 'create')
|
|||||||
// Show credit note options only if we checked credit note
|
// Show credit note options only if we checked credit note
|
||||||
print '<script type="text/javascript" language="javascript">
|
print '<script type="text/javascript" language="javascript">
|
||||||
jQuery(document).ready(function() {
|
jQuery(document).ready(function() {
|
||||||
if (! jQuery("#radio_creditnote").prop("checked"))
|
if (! jQuery("#radio_creditnote").is(":checked"))
|
||||||
{
|
{
|
||||||
jQuery("#credit_note_options").hide();
|
jQuery("#credit_note_options").hide();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -488,7 +488,7 @@ jQuery(document).ready(function() {
|
|||||||
function init_needroot()
|
function init_needroot()
|
||||||
{
|
{
|
||||||
/*alert(jQuery("#db_create_database").prop("checked")); */
|
/*alert(jQuery("#db_create_database").prop("checked")); */
|
||||||
if (jQuery("#db_create_database").prop("checked") || jQuery("#db_create_user").prop("checked"))
|
if (jQuery("#db_create_database").is(":checked") || jQuery("#db_create_user").is(":checked"))
|
||||||
{
|
{
|
||||||
jQuery(".hideroot").show();
|
jQuery(".hideroot").show();
|
||||||
jQuery(".needroot").removeAttr('disabled');
|
jQuery(".needroot").removeAttr('disabled');
|
||||||
|
|||||||
@ -831,7 +831,7 @@ if (($action == 'create') || ($action == 'adduserldap'))
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
$("input[name=superadmin]").change(function() {
|
$("input[name=superadmin]").change(function() {
|
||||||
if ( $(this).prop("checked", true) ) {
|
if ( $(this).is(":checked") ) {
|
||||||
$("select[name=entity]")
|
$("select[name=entity]")
|
||||||
.prop("disabled", true);
|
.prop("disabled", true);
|
||||||
} else {
|
} else {
|
||||||
@ -1825,7 +1825,7 @@ else
|
|||||||
.prop("disabled", true)
|
.prop("disabled", true)
|
||||||
.prop("checked", false);
|
.prop("checked", false);
|
||||||
}
|
}
|
||||||
if ($("input[name=superadmin]").prop("checked", true)) {
|
if ($("input[name=superadmin]").is(":checked")) {
|
||||||
$("select[name=entity]")
|
$("select[name=entity]")
|
||||||
.prop("disabled", true);
|
.prop("disabled", true);
|
||||||
}
|
}
|
||||||
@ -1842,7 +1842,7 @@ else
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
$("input[name=superadmin]").change(function() {
|
$("input[name=superadmin]").change(function() {
|
||||||
if ( $(this).prop("checked", true)) {
|
if ( $(this).is(":checked")) {
|
||||||
$("select[name=entity]")
|
$("select[name=entity]")
|
||||||
.prop("disabled", true);
|
.prop("disabled", true);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user