mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°3657 - Replace calls to deprecate jQuery methods (".submit(callback)" to ".on('submit', callback)")
This commit is contained in:
@@ -292,7 +292,7 @@ editor.commands.addCommand({
|
|||||||
|
|
||||||
|
|
||||||
var editorForm = EditorUtils.getEditorForm(editor);
|
var editorForm = EditorUtils.getEditorForm(editor);
|
||||||
editorForm.submit(function() {
|
editorForm.on('submit', function() {
|
||||||
EditorUtils.saveEditorDisplay(editor);
|
EditorUtils.saveEditorDisplay(editor);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ function LinksWidget(id, sClass, sAttCode, iInputId, sSuffix, bDuplicates, oWizH
|
|||||||
oInput.bind('update_value', function () {
|
oInput.bind('update_value', function () {
|
||||||
$(this).val(me.GetUpdatedValue());
|
$(this).val(me.GetUpdatedValue());
|
||||||
});
|
});
|
||||||
oInput.closest('form').submit(function () {
|
oInput.closest('form').on('submit', function () {
|
||||||
return me.OnFormSubmit();
|
return me.OnFormSubmit();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ function SearchFormForeignKeys(id, sTargetClass, sAttCode, oSearchWidgetElmt, sF
|
|||||||
$('#dlg_'+me.id).remove();
|
$('#dlg_'+me.id).remove();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#'+this.iInputId).closest('form').submit(function() {
|
$('#'+this.iInputId).closest('form').on('submit', function() {
|
||||||
return me.OnFormSubmit();
|
return me.OnFormSubmit();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -654,7 +654,7 @@ $(function()
|
|||||||
var me = this;
|
var me = this;
|
||||||
if (sOperation == 'attachment')
|
if (sOperation == 'attachment')
|
||||||
{
|
{
|
||||||
$('#GraphExportDlg'+this.element.attr('id')+' form').submit(function() { return me._on_export_as_attachment(); });
|
$('#GraphExportDlg'+this.element.attr('id')+' form').on('submit', function() { return me._on_export_as_attachment(); });
|
||||||
}
|
}
|
||||||
$('#GraphExportDlg'+this.element.attr('id')).dialog({
|
$('#GraphExportDlg'+this.element.attr('id')).dialog({
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ $('form').each(function () {
|
|||||||
});
|
});
|
||||||
$('#btn_back').click(function() { $('#wiz_form').data('back', true); });
|
$('#btn_back').click(function() { $('#wiz_form').data('back', true); });
|
||||||
|
|
||||||
$('#wiz_form').submit(function() {
|
$('#wiz_form').on('submit', function() {
|
||||||
if ($(this).data('back'))
|
if ($(this).data('back'))
|
||||||
{
|
{
|
||||||
return CanMoveBackward();
|
return CanMoveBackward();
|
||||||
|
|||||||
Reference in New Issue
Block a user