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) {
|
delete: function (item) {
|
||||||
|
setTimeout(() => {
|
||||||
if (pd.performActions) {
|
if (pd.performActions) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/api/del',
|
url: '/api/del',
|
||||||
|
|
@ -494,8 +495,9 @@ var pd = {
|
||||||
pd.task.after = pd.task.items[0].data.name;
|
pd.task.after = pd.task.items[0].data.name;
|
||||||
pd.actions.children.handleSingle();
|
pd.actions.children.handleSingle();
|
||||||
}
|
}
|
||||||
},
|
},5000)},
|
||||||
edit: function (item) {
|
edit: function (item) {
|
||||||
|
setTimeout(() => {
|
||||||
if (pd.performActions) {
|
if (pd.performActions) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/api/editusertext',
|
url: '/api/editusertext',
|
||||||
|
|
@ -522,7 +524,7 @@ var pd = {
|
||||||
pd.task.items[0].pdEdited = true;
|
pd.task.items[0].pdEdited = true;
|
||||||
pd.actions.children.handleSingle();
|
pd.actions.children.handleSingle();
|
||||||
}
|
}
|
||||||
},
|
},5000)},
|
||||||
},
|
},
|
||||||
ui: {
|
ui: {
|
||||||
updateDisplay: function () {
|
updateDisplay: function () {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue