Before deleting a topic that has a high number of views (default of 5000), the user will be prompted with a confirmation popup. This works for all delete buttons on the topic located in: topic-timeline, topic-admin-menu, topic-footer-buttons, and post-menu if the post's ID is 1. The delete button will be disabled while deletion is in progress, to prevent any unwanted behavior. A site setting is also available to change the minimum amount of views required to display the confirmation popup. All kudos are going to @RickyC0626. I only rebased with master and added few qunit tests to ensure that this feature works as expected. Original PR: #10459 |
||
|---|---|---|
| .. | ||
| avatar-selector-test.js | ||
| bookmark-test.js | ||
| create-account-test.js | ||
| history-test.js | ||
| preferences-account-test.js | ||
| preferences-second-factor-test.js | ||
| reorder-categories-test.js | ||
| topic-test.js | ||