jQuery modernization : removed and replaced calls to deprecated methods in jquery 1.12.4

SVN:trunk[5358]
This commit is contained in:
Stephen Abello
2018-02-22 09:24:42 +00:00
parent ebb541e4f5
commit 862d08f57d
9 changed files with 370 additions and 373 deletions

View File

@@ -974,7 +974,7 @@ EOF
$('#mapping').block();
// Re-enable all search_xxx checkboxes so that their value gets posted
$('input[name^=search]').each(function() {
$(this).attr('disabled', false);
$(this).prop('disabled', false);
});
}
return bResult;
@@ -1003,32 +1003,32 @@ EOF
if ((sMappingValue == '') || (sMappingValue == ':none:'))
{
// Non-mapped field, uncheck and disabled
$('#search_'+index).attr('checked', false);
$('#search_'+index).attr('disabled', true);
$('#search_'+index).prop('checked', false);
$('#search_'+index).prop('disabled', true);
}
else if (aReadOnlyKeys.indexOf(sMappingValue) >= 0)
{
// Read-only attribute forced to reconciliation key
$('#search_'+index).attr('checked', true);
$('#search_'+index).attr('disabled', true);
$('#search_'+index).prop('checked', true);
$('#search_'+index).prop('disabled', true);
}
else if (index == idSelected)
{
// The 'id' field was mapped, it's the only possible reconciliation key
$('#search_'+index).attr('checked', true);
$('#search_'+index).attr('disabled', true);
$('#search_'+index).prop('checked', true);
$('#search_'+index).prop('disabled', true);
}
else
{
if (idSelected > 0)
{
// The 'id' field was mapped, it's the only possible reconciliation key
$('#search_'+index).attr('checked', false);
$('#search_'+index).attr('disabled', true);
$('#search_'+index).prop('checked', false);
$('#search_'+index).prop('disabled', true);
}
else
{
$('#search_'+index).attr('disabled', false);
$('#search_'+index).prop('disabled', false);
if (nbSearchKeys == 0)
{
// No search key was selected, select the default ones
@@ -1036,7 +1036,7 @@ EOF
{
if (sMappingValue == aDefaultKeys[j])
{
$('#search_'+index).attr('checked', true);
$('#search_'+index).prop('checked', true);
}
}
}