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));