From c2336606ae19db197cf8dfcc32a34b6351cee5e6 Mon Sep 17 00:00:00 2001 From: "woltlab.com" Date: Sat, 24 Sep 2016 22:46:54 +0200 Subject: [PATCH] Updating minified JavaScript files --- files/js/WoltLabSuite.Core.Conversation.min.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/js/WoltLabSuite.Core.Conversation.min.js b/files/js/WoltLabSuite.Core.Conversation.min.js index 55a574a..f257681 100644 --- a/files/js/WoltLabSuite.Core.Conversation.min.js +++ b/files/js/WoltLabSuite.Core.Conversation.min.js @@ -1 +1 @@ -define("WoltLabSuite/Core/Conversation/Ui/Participant/Add",["Ajax","Language","Ui/Dialog","Ui/Notification","WoltLabSuite/Core/Ui/ItemList/User"],function(t,e,a,i,n){"use strict";function s(t){this.init(t)}return s.prototype={init:function(e){this._conversationId=e,t.api(this,{actionName:"getAddParticipantsForm"})},_ajaxSetup:function(){return{data:{className:"wcf\\data\\conversation\\ConversationAction",objectIDs:[this._conversationId]}}},_ajaxSuccess:function(t){switch(t.actionName){case"addParticipants":this._handleResponse(t);break;case"getAddParticipantsForm":this._render(t)}},_handleResponse:function(t){t.returnValues.count&&i.show(t.returnValues.successMessage),a.close(this)},_render:function(t){a.open(this,t.returnValues.template);var e=document.getElementById("addParticipants");e.disabled=!0,n.init("participantsInput",{callbackChange:function(t,a){e.disabled=0===a.length},excludedSearchValues:t.returnValues.excludedSearchValues,maxItems:t.returnValues.maxItems}),e.addEventListener("click",this._submit.bind(this))},_submit:function(){for(var e=n.getValues("participantsInput"),a=[],i=0,s=e.length;s>i;i++)a.push(e[i].value);t.api(this,{actionName:"addParticipants",parameters:{participants:a}})},_dialogSetup:function(){return{id:"conversationAddParticipants",options:{title:e.get("wcf.conversation.edit.addParticipants")},source:null}}},s}); \ No newline at end of file +define("WoltLabSuite/Core/Conversation/Ui/Participant/Add",["Ajax","Language","Ui/Dialog","Ui/Notification","WoltLabSuite/Core/Ui/ItemList/User"],function(t,e,i,a,n){"use strict";function s(t){this.init(t)}return s.prototype={init:function(e){this._conversationId=e,t.api(this,{actionName:"getAddParticipantsForm"})},_ajaxSetup:function(){return{data:{className:"wcf\\data\\conversation\\ConversationAction",objectIDs:[this._conversationId]}}},_ajaxSuccess:function(t){switch(t.actionName){case"addParticipants":this._handleResponse(t);break;case"getAddParticipantsForm":this._render(t)}},_handleResponse:function(t){t.returnValues.count&&a.show(t.returnValues.successMessage,window.location.reload.bind(window.location)),i.close(this)},_render:function(t){i.open(this,t.returnValues.template);var e=document.getElementById("addParticipants");e.disabled=!0,n.init("participantsInput",{callbackChange:function(t,i){e.disabled=0===i.length},excludedSearchValues:t.returnValues.excludedSearchValues,maxItems:t.returnValues.maxItems}),e.addEventListener("click",this._submit.bind(this))},_submit:function(){for(var e=n.getValues("participantsInput"),i=[],a=0,s=e.length;s>a;a++)i.push(e[a].value);t.api(this,{actionName:"addParticipants",parameters:{participants:i}})},_dialogSetup:function(){return{id:"conversationAddParticipants",options:{title:e.get("wcf.conversation.edit.addParticipants")},source:null}}},s}); \ No newline at end of file -- 2.20.1