Skip to content

Commit 9503cea

Browse files
authored
Setting 5sec delay on delete/update comment
1 parent 2753246 commit 9503cea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

powerdeletesuite.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ var pd = {
467467
}
468468
},
469469
delete: function (item) {
470+
setTimeout(() => {
470471
if (pd.performActions) {
471472
$.ajax({
472473
url: '/api/del',
@@ -494,8 +495,9 @@ var pd = {
494495
pd.task.after = pd.task.items[0].data.name;
495496
pd.actions.children.handleSingle();
496497
}
497-
},
498+
},5000)},
498499
edit: function (item) {
500+
setTimeout(() => {
499501
if (pd.performActions) {
500502
$.ajax({
501503
url: '/api/editusertext',
@@ -522,7 +524,7 @@ var pd = {
522524
pd.task.items[0].pdEdited = true;
523525
pd.actions.children.handleSingle();
524526
}
525-
},
527+
},5000)},
526528
},
527529
ui: {
528530
updateDisplay: function () {

0 commit comments

Comments
 (0)