From 3fff659e9988ecb7630b868cf9a66379c5201f79 Mon Sep 17 00:00:00 2001 From: "woltlab.com" Date: Wed, 11 Dec 2013 15:25:52 +0100 Subject: [PATCH] Updating minified JavaScript files --- files/js/WCF.Conversation.min.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/js/WCF.Conversation.min.js b/files/js/WCF.Conversation.min.js index 0bfdf6a..e318fd7 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);var $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")?true:false),labelIDs:$labelIDs};self._permissions[$conversationID]={canAddParticipants:($conversation.data("canAddParticipants")?true:false),canCloseConversation:($conversation.data("canCloseConversation")?true:false)}}})},getPermission:function(b,a){if(this._permissions[b][a]===undefined){return false}return(this._permissions[b][a])?true:false},getValue:function(b,a){switch(a){case"labelIDs":if(this._attributes[b].labelIDs===undefined){this._attributes[b].labelIDs=[]}return this._attributes[b].labelIDs;break;case"isClosed":return(this._attributes[b].isClosed)?true:false;break}},countAvailableLabels:function(){return(this.getAvailableLabels()).length},getAvailableLabels:function(){var a=[];WCF.Dropdown.getDropdownMenu("conversationLabelFilter").children("li").each(function(c,e){var d=$(e);if(d.hasClass("dropdownDivider")){return false}var b=d.find("span");a.push({cssClassName:b.data("cssClassName"),labelID:b.data("labelID"),label:b.text()})});return a},update:function(i,g,b){if(!this._conversations[i]){console.debug("[WCF.Conversation.EditorHandler] Unknown conversation id '"+i+"'");return}var c=this._conversations[i];switch(g){case"close":$('
  • ').prependTo(c.find(".statusIcons"));this._attributes[i].isClosed=1;break;case"labelIDs":var a={};WCF.Dropdown.getDropdownMenu("conversationLabelFilter").find("li > a > span").each(function(k,l){var j=$(l);a[j.data("labelID")]={cssClassName:j.data("cssClassName"),label:j.text(),url:j.parent().attr("href")}});var f=c.find(".columnSubject > .labelList");if(!b.length){if(f.length){f.remove()}}else{if(!f.length){f=$('