Skip to content

Commit 6ebaae9

Browse files
committed
[Software maintenance - Perfective]
* Fix delele and update request.
1 parent aabb43b commit 6ebaae9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/templates/admin-cms/partials/script/menu-scripts.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
data: { id: $('#data-id').val()},//$("#removeData").val($(event.relatedTarget).data('id')),
7272
success: function (data) {
7373
$('#removeData').modal('hide')
74-
toastr.warning('Registro removido com sucesso.').success(
74+
toastr.warning('Registro removido com sucesso.').onsuccess(
7575
setTimeout(function(){
7676
location.reload();
7777
}, 5000)
@@ -119,7 +119,7 @@
119119
120120
case "btnUpdateMenu":
121121
$('#data-id').val($(this).data("id"));
122-
$('#txtMenuEdit').val($(this).data("id"));
122+
$('#removeData').modal('show');
123123
break;
124124
125125

0 commit comments

Comments
 (0)