From 5bb2d97d49abc6f0b7252221c80e63180dd64cbe Mon Sep 17 00:00:00 2001 From: Muhammad Sulaiman Yusuf Date: Fri, 25 Nov 2022 15:34:14 +0700 Subject: [PATCH] bugfix delete overhead --- edit-mode/function/expenseResource.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/edit-mode/function/expenseResource.js b/edit-mode/function/expenseResource.js index f5f8015..bd7f101 100644 --- a/edit-mode/function/expenseResource.js +++ b/edit-mode/function/expenseResource.js @@ -64,11 +64,11 @@ $(document).ready(function () { type: "DELETE", success: function (data) { actionHappen = true; - gantt.alert("Delete expense Assign Success!"); + gantt.alert("Overhead deleted!"); tableexpense.draw(); }, error: function (data) { - gantt.alert("Delete expense Assign Failed, try again later!"); + gantt.alert("Failed to delete the data."); } }); } @@ -208,7 +208,7 @@ $(document).ready(function () { } }, error: function (data) { - gantt.alert("expense Request Failed, try again later!"); + gantt.alert("Overhead request Failed, try again later!"); resetFormAssignexpense(); } }); @@ -216,10 +216,10 @@ $(document).ready(function () { }); // delete from row - $("#table-expense").on("click", ".btn-expense-delete", function () { + $("#table-expense").on("click", ".btn-material-delete", function () { let id = $(this).data('id'); var box = gantt.confirm({ - text: "expense will be deleted from activity, continue?", + text: "Overhead will be deleted from activity, continue?", ok: "Delete", cancel: "Cancel", callback: function (result) {