Setting 5sec delay on delete/update comment
This commit is contained in:
parent
102ae505b2
commit
8c123472e8
1 changed files with 4 additions and 2 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue