From 544adf9c7af17351133e94b5e10b81fc1d7383d5 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 (cherry picked from commit b7c940bd8ebd7b695c5a37d597735e53164b7800) --- 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 543f0a74..6525fb4e 100644 --- a/src/rup_table/rup.table.editForm.js +++ b/src/rup_table/rup.table.editForm.js @@ -997,11 +997,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) { @@ -1013,7 +1013,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 @@ -1022,12 +1022,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); } @@ -1035,7 +1035,7 @@ } }, complete: function () { - $('#' + ctx.sTableId).triggerHandler('tableEditFormCompleteCallSaveAjax',actionType,ctx); + $('#' + ctx.sTableId).triggerHandler('tableEditFormCompleteCallSaveAjax', [ctx, actionType]); }, error: function (xhr) { let divErrorFeedback; @@ -1075,7 +1075,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({