Removed the confirmation box for marking items in the user panel as read
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / js / WCF.User.js
index 1e5ad4934e1c30894bc468a57e473d5115da4a66..f1dc65d17d76f956b64cec877a0ae8d66a7e87b5 100644 (file)
@@ -284,16 +284,12 @@ if (COMPILER_TARGET_DEFAULT) {
                                
                                if (this._options.enableMarkAsRead) {
                                        var $outstandingItems = this._dropdown.getItemList().children('.interactiveDropdownItemOutstanding');
-                                       if (this._markAllAsReadLink === null && $outstandingItems.length && this._options.markAllAsReadConfirmMessage) {
+                                       if (this._markAllAsReadLink === null && $outstandingItems.length) {
                                                var $button = this._markAllAsReadLink = $('<li class="interactiveDropdownItemMarkAllAsRead"><a href="#" title="' + WCF.Language.get('wcf.user.panel.markAllAsRead') + '" class="jsTooltip"><span class="icon icon24 fa-check" /></a></li>').appendTo(this._dropdown.getLinkList());
                                                $button.click((function (event) {
                                                        this._dropdown.close();
                                                        
-                                                       WCF.System.Confirmation.show(this._options.markAllAsReadConfirmMessage, (function (action) {
-                                                               if (action === 'confirm') {
-                                                                       this._markAllAsRead();
-                                                               }
-                                                       }).bind(this));
+                                                       this._markAllAsRead();
                                                        
                                                        return false;
                                                }).bind(this));