Browse Source

bugfix delete overhead

pull/1/head
Muhammad Sulaiman Yusuf 2 years ago
parent
commit
5bb2d97d49
  1. 10
      edit-mode/function/expenseResource.js

10
edit-mode/function/expenseResource.js

@ -64,11 +64,11 @@ $(document).ready(function () {
type: "DELETE", type: "DELETE",
success: function (data) { success: function (data) {
actionHappen = true; actionHappen = true;
gantt.alert("Delete expense Assign Success!"); gantt.alert("Overhead deleted!");
tableexpense.draw(); tableexpense.draw();
}, },
error: function (data) { 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) { error: function (data) {
gantt.alert("expense Request Failed, try again later!"); gantt.alert("Overhead request Failed, try again later!");
resetFormAssignexpense(); resetFormAssignexpense();
} }
}); });
@ -216,10 +216,10 @@ $(document).ready(function () {
}); });
// delete from row // delete from row
$("#table-expense").on("click", ".btn-expense-delete", function () { $("#table-expense").on("click", ".btn-material-delete", function () {
let id = $(this).data('id'); let id = $(this).data('id');
var box = gantt.confirm({ var box = gantt.confirm({
text: "expense will be deleted from activity, continue?", text: "Overhead will be deleted from activity, continue?",
ok: "Delete", ok: "Delete",
cancel: "Cancel", cancel: "Cancel",
callback: function (result) { callback: function (result) {

Loading…
Cancel
Save