Skip to content

Commit 60d8f16

Browse files
Remove modal when data updated
1 parent da31c84 commit 60d8f16

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

debug-db/src/main/assets/debugDbHome/js/dataTables.altEditor.free.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,7 @@
348348
that._emitEvent("update-row", [
349349
JSON.stringify(data),
350350
function(isUpdated) {
351-
//remove existing alert elements
352-
$('#altEditor-modal .modal-body .alert').remove();
351+
353352

354353
//set error message and other properties based on whether update is successfull or not
355354
var alertAdditionClasses = "alert-success";
@@ -378,6 +377,8 @@
378377
dt.row({
379378
selected: true
380379
}).data(data);
380+
//remove existing alert elements
381+
$('#altEditor-modal').modal('hide');
381382
}
382383
$("#editRowBtn").removeClass('disabled');
383384
$("#editRowBtn").text(editButtonCurrentText);

0 commit comments

Comments
 (0)