mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
jQuery modernization : removed and replaced calls to deprecated methods in jquery 1.12.4
SVN:trunk[5358]
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user