* @param jQuery jqXHR
*/
_success: function(data, textStatus, jqXHR) {
- // @todo fix dropdown
+ // update dropdown
+ var dropdown = WCF.Dropdown.Interactive.Handler.getDropdown('outstandingModeration');
+ if (dropdown) {
+ dropdown.getLinkList().find('.interactiveDropdownItemMarkAllAsRead').remove();
+ dropdown.getItemList().find('.interactiveDropdownItemMarkAsRead').remove();
+ }
+
+ // remove badge in userpanel
+ $('#outstandingModeration .badgeUpdate').remove();
- // @todo remove badge in userpanel
-
// fix moderation list
var $moderationList = $('.moderationList');
$moderationList.find('.new').removeClass('new');
}
return null;
+ },
+
+ /**
+ * Returns the dropdown with given identifier or `undefined` if no such dropdown exists.
+ *
+ * @param string identifier
+ * @return {WCF.Dropdown.Interactive.Instance?}
+ */
+ getDropdown: function(identifier) {
+ return this._dropdownMenus[identifier];
}
};