Merge pull request #45 from james2432/master

Setting 5sec delay on delete/update comment
This commit is contained in:
Wadie 2023-07-10 11:12:24 +02:00 committed by GitHub
commit e16e7c2595

View file

@ -467,6 +467,7 @@ var pd = {
}
},
delete: function (item) {
setTimeout(() => {
if (pd.performActions) {
$.ajax({
url: '/api/del',
@ -494,8 +495,9 @@ var pd = {
pd.task.after = pd.task.items[0].data.name;
pd.actions.children.handleSingle();
}
},
},5000)},
edit: function (item) {
setTimeout(() => {
if (pd.performActions) {
$.ajax({
url: '/api/editusertext',
@ -522,7 +524,7 @@ var pd = {
pd.task.items[0].pdEdited = true;
pd.actions.children.handleSingle();
}
},
},5000)},
},
ui: {
updateDisplay: function () {