From 52fdafa2d4c35fbff6241aa3d82bbd546630d2a7 Mon Sep 17 00:00:00 2001 From: "woltlab.com" Date: Tue, 16 Aug 2016 16:45:13 +0200 Subject: [PATCH] Updating minified JavaScript files --- files/js/WCF.Conversation.min.js | 2 +- files/js/WoltLabSuite.Core.Conversation.min.js | 1 + files/js/require.build.min.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 files/js/WoltLabSuite.Core.Conversation.min.js create mode 100644 files/js/require.build.min.js diff --git a/files/js/WCF.Conversation.min.js b/files/js/WCF.Conversation.min.js index 60d0097..bdfde17 100755 --- a/files/js/WCF.Conversation.min.js +++ b/files/js/WCF.Conversation.min.js @@ -1 +1 @@ -WCF.Conversation={},WCF.Conversation.EditorHandler=Class.extend({_attributes:{},_conversations:{},_permissions:{},init:function(availableLabels){this._conversations={};var self=this;$(".conversation").each(function(index,conversation){var $conversation=$(conversation),$conversationID=$conversation.data("conversationID");if(!self._conversations[$conversationID]){self._conversations[$conversationID]=$conversation;var $labelIDs=eval($conversation.data("labelIDs"));self._attributes[$conversationID]={isClosed:$conversation.data("isClosed")?!0:!1,labelIDs:$labelIDs},self._permissions[$conversationID]={canAddParticipants:$conversation.data("canAddParticipants")?!0:!1,canCloseConversation:$conversation.data("canCloseConversation")?!0:!1}}})},getPermission:function(e,a){return void 0===this._permissions[e][a]?!1:this._permissions[e][a]?!0:!1},getValue:function(e,a){switch(a){case"labelIDs":return void 0===this._attributes[e].labelIDs&&(this._attributes[e].labelIDs=[]),this._attributes[e].labelIDs;case"isClosed":return this._attributes[e].isClosed?!0:!1}},countAvailableLabels:function(){return this.getAvailableLabels().length},getAvailableLabels:function(){var e=[];return WCF.Dropdown.getDropdownMenu("conversationLabelFilter").children(".scrollableDropdownMenu").children("li").each(function(a,t){var n=$(t);if(n.hasClass("dropdownDivider"))return!1;var s=n.find("span");e.push({cssClassName:s.data("cssClassName"),labelID:s.data("labelID"),label:s.text()})}),e},update:function(e,a,t){if(!this._conversations[e])return void console.debug("[WCF.Conversation.EditorHandler] Unknown conversation id '"+e+"'");var n=this._conversations[e];switch(a){case"close":$('
  • ').prependTo(n.find(".statusIcons")),this._attributes[e].isClosed=1;break;case"labelIDs":var s={};WCF.Dropdown.getDropdownMenu("conversationLabelFilter").find("li > a > span").each(function(e,a){var t=$(a);s[t.data("labelID")]={cssClassName:t.data("cssClassName"),label:t.text(),url:t.parent().attr("href")}});var i=n.find(".columnSubject > .labelList");if(t.length){i.length||(i=$('