mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°3817 - Audit and fix calls to deprecated jQuery method
This commit is contained in:
@@ -390,7 +390,7 @@ $sPageJS
|
||||
$sPageReadyJS
|
||||
$(document).ready(function() {
|
||||
$('[data-role="ibo-navigation-menu--silo-selection--form"] #org_id').on('extkeychange', function() {
|
||||
$('[data-role="ibo-navigation-menu--silo-selection--form"]').submit();
|
||||
$('[data-role="ibo-navigation-menu--silo-selection--form"]').trigger('submit');
|
||||
});
|
||||
$('[data-role="ibo-navigation-menu--silo-selection--form"] #label_org_id').on('click', function() {
|
||||
if ($('[data-role="ibo-navigation-menu--silo-selection--form"] #org_id').val() == '') {
|
||||
|
||||
@@ -694,7 +694,7 @@ EOF
|
||||
{
|
||||
oOptions['base_modal'] = {
|
||||
'usage': 'replace',
|
||||
'selector': '.modal[data-source-element="{$sButtonAddId}"]:first'
|
||||
'selector': '.modal[data-source-element="{$sButtonAddId}"]'
|
||||
};
|
||||
}
|
||||
CombodoModal.OpenModal(oOptions);
|
||||
|
||||
@@ -454,7 +454,7 @@ JS
|
||||
{
|
||||
oOptions['base_modal'] = {
|
||||
'usage': 'replace',
|
||||
'selector': '.modal[data-source-element="{$sSearchButtonId}"]:first'
|
||||
'selector': '.modal[data-source-element="{$sSearchButtonId}"]'
|
||||
};
|
||||
}
|
||||
CombodoModal.OpenModal(oOptions);
|
||||
|
||||
@@ -242,7 +242,7 @@ EOF
|
||||
name: $(me).closest(".form_field").attr("data-field-id"),
|
||||
value: $(me).val()
|
||||
});
|
||||
}).on("mouseup", function(){this.focus();});
|
||||
}).on("mouseup", function(){this.trigger('focus');});
|
||||
JS
|
||||
);
|
||||
break;
|
||||
@@ -275,7 +275,7 @@ JS
|
||||
name: $(me).closest(".form_field").attr("data-field-id"),
|
||||
value: $(me).val()
|
||||
});
|
||||
}).on("mouseup", function(){this.focus();});
|
||||
}).on("mouseup", function(){this.trigger('focus');});
|
||||
JS
|
||||
);
|
||||
}
|
||||
|
||||
@@ -506,14 +506,14 @@ EOF
|
||||
function CSVGoBack()
|
||||
{
|
||||
$('input[name=step]').val($iCurrentStep-1);
|
||||
$('#wizForm').submit();
|
||||
$('#wizForm').trigger('submit');
|
||||
|
||||
}
|
||||
|
||||
function CSVRestart()
|
||||
{
|
||||
$('input[name=step]').val(1);
|
||||
$('#wizForm').submit();
|
||||
$('#wizForm').trigger('submit');
|
||||
|
||||
}
|
||||
|
||||
@@ -560,7 +560,7 @@ function DoSubmit(bConfirm)
|
||||
{
|
||||
// Submit the form
|
||||
$('#wizForm').block();
|
||||
$('#wizForm').submit();
|
||||
$('#wizForm').trigger('submit');
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -575,7 +575,7 @@ function RunImport()
|
||||
$('#dlg_confirmation').dialog('close');
|
||||
// Submit the form
|
||||
$('#wizForm').block();
|
||||
$('#wizForm').submit();
|
||||
$('#wizForm').trigger('submit');
|
||||
}
|
||||
EOF
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user