feat: add undoTimeout to moving posts as well #9599

v1.18.x
psychobunny 4 years ago
parent 05cc7ccb60
commit e588948ff5

@ -44,7 +44,8 @@ define('forum/topic/move-post', [
pids: postSelect.pids.slice(),
tid: targetTid,
};
alerts.alert({
if (config.undoTimeout > 0) {
return alerts.alert({
alert_id: 'pids_move_' + postSelect.pids.join('-'),
title: '[[topic:thread_tools.move-posts]]',
message: '[[topic:topic_move_posts_success]]',
@ -59,6 +60,9 @@ define('forum/topic/move-post', [
moveCommit.removeAttr('disabled');
},
});
}
movePosts(data);
});
});
};

Loading…
Cancel
Save