|
|
|
@ -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) { |
|
|
|
|