From b7c940bd8ebd7b695c5a37d597735e53164b7800 Mon Sep 17 00:00:00 2001 From: Xabi Date: Wed, 15 May 2024 16:30:22 +0200 Subject: [PATCH] =?UTF-8?q?Corregir=20definici=C3=B3n=20de=20par=C3=A1metr?= =?UTF-8?q?os=20en=20eventos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rup_table/rup.table.editForm.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/rup_table/rup.table.editForm.js b/src/rup_table/rup.table.editForm.js index 795fdd1b..3a135c97 100644 --- a/src/rup_table/rup.table.editForm.js +++ b/src/rup_table/rup.table.editForm.js @@ -1027,11 +1027,11 @@ */ dt.ajax.reload(); - $('#' + ctx.sTableId).triggerHandler('tableEditFormAfterInsertRow',actionType,ctx); + $('#' + ctx.sTableId).triggerHandler('tableEditFormAfterInsertRow', [ctx, actionType]); } if(actionType === 'PUT'){ dt.ajax.reload(function () { - $('#' + ctx.sTableId).trigger('tableEditFormSuccessCallSaveAjax',actionType,ctx); + $('#' + ctx.sTableId).trigger('tableEditFormSuccessCallSaveAjax', [ctx, actionType]); }, false); } else { if (ctx.oInit.multiSelect === undefined) { @@ -1043,7 +1043,7 @@ ctx.multiselection.selectedRowsPerPage[0] = arra; DataTable.Api().select.drawSelectId(ctx); } - $('#' + ctx.sTableId).trigger('tableAddFormSuccessCallSaveAjax',actionType,ctx); + $('#' + ctx.sTableId).trigger('tableAddFormSuccessCallSaveAjax', [ctx, actionType]); } } else { // Eliminar @@ -1052,12 +1052,12 @@ if (ctx.oInit.multiSelect !== undefined) { dt.ajax.reload(function () { - $('#' + ctx.sTableId).trigger('tableEditFormSuccessCallSaveAjax',actionType,ctx); + $('#' + ctx.sTableId).trigger('tableEditFormSuccessCallSaveAjax', [ctx, actionType]); DataTable.Api().multiSelect.deselectAll(dt); }, false); } else if (ctx.oInit.select !== undefined) { dt.ajax.reload(function () { - $('#' + ctx.sTableId).trigger('tableEditFormSuccessCallSaveAjax',actionType,ctx); + $('#' + ctx.sTableId).trigger('tableEditFormSuccessCallSaveAjax', [ctx, actionType]); DataTable.Api().select.deselect(ctx); }, false); } @@ -1065,7 +1065,7 @@ } }, complete: function () { - $('#' + ctx.sTableId).triggerHandler('tableEditFormCompleteCallSaveAjax',actionType,ctx); + $('#' + ctx.sTableId).triggerHandler('tableEditFormCompleteCallSaveAjax', [ctx, actionType]); }, error: function (xhr) { let divErrorFeedback; @@ -1105,7 +1105,7 @@ _callFeedbackOk(ctx, divErrorFeedback, xhr.responseText, 'error'); } - $('#' + ctx.sTableId).triggerHandler('tableEditFormErrorCallSaveAjax',actionType,ctx); + $('#' + ctx.sTableId).triggerHandler('tableEditFormErrorCallSaveAjax', [ctx, actionType]); }, validate: validaciones, feedback: feed.rup_feedback({