From: woltlab.com Date: Sat, 25 May 2013 15:50:58 +0000 (+0200) Subject: Updating minified JavaScript files X-Git-Tag: 2.0.0_Beta_1~57^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=67aff69d774a7a29f6b034d496cc37296232422b;p=GitHub%2FWoltLab%2FWCF.git Updating minified JavaScript files --- diff --git a/wcfsetup/install/files/js/WCF.Label.min.js b/wcfsetup/install/files/js/WCF.Label.min.js index c9bab186a9..65c5a930cb 100755 --- a/wcfsetup/install/files/js/WCF.Label.min.js +++ b/wcfsetup/install/files/js/WCF.Label.min.js @@ -1 +1 @@ -WCF.Label={};WCF.Label.ACPList=Class.extend({_labelInput:null,_labelList:[],init:function(){this._labelInput=$("#label").keydown($.proxy(this._keyPressed,this)).keyup($.proxy(this._keyPressed,this)).blur($.proxy(this._keyPressed,this));$("#labelList").find('input[type="radio"]').each($.proxy(function(b,a){var c=$(a);if(c.prop("value")!=="custom"){this._labelList.push($(c.next("span")))}},this))},_keyPressed:function(){var a=this._labelInput.prop("value");if(a===""){a=WCF.Language.get("wcf.acp.label.defaultValue")}for(var c=0,b=this._labelList.length;c li").each($.proxy(function(j,i){var h=$(i);var k=h.data("labelID")||0;if(k&&e[a]==k){this._selectLabel(h,true)}},this))}}for(var c in this._containers){var f=this._containers[c];if(f.data("labelID")===undefined){f.data("labelID",0)}}this._container=$(b);if(d){$(d).click($.proxy(this._submit,this))}else{if(this._container.is("form")){this._container.submit($.proxy(this._submit,this))}}},_initContainers:function(a){$(a).find(".labelChooser").each($.proxy(function(d,g){var e=$(g);var b=e.data("groupID");if(!this._groups[b]){this._groups[b]=e;var c=e.find(".dropdownMenu");c.find("li").click($.proxy(this._click,this));if(!e.data("forceSelection")||this._showWithoutSelection){$('
  • '+WCF.Language.get("wcf.label.withoutSelection")+"
  • ").appendTo(c).click($.proxy(this._click,this))}if(!e.data("forceSelection")){var f=$('
  • '+WCF.Language.get("wcf.label.none")+"
  • ").appendTo(c);f.click($.proxy(this._click,this))}}},this))},_click:function(a){this._selectLabel($(a.currentTarget),false)},_selectLabel:function(a,c){var b=a.parents(".dropdown");if(c&&b.data("labelID")!==undefined){return}if(a.data("labelID")){b.data("labelID",a.data("labelID"))}else{b.data("labelID",0)}a=a.find("span > span");b.find(".dropdownToggle > span").removeClass().addClass(a.attr("class")).text(a.text())},_submit:function(){var b=this._container.find(".formSubmit");b.find('input[type="hidden"]').each(function(e,d){var f=$(d);if(f.attr("name").indexOf("labelIDs[")===0){f.remove()}});for(var a in this._groups){var c=this._groups[a];if(c.data("labelID")){$('').appendTo(b)}}}}); \ No newline at end of file +WCF.Label={};WCF.Label.ACPList=Class.extend({_labelInput:null,_labelList:[],init:function(){this._labelInput=$("#label").keydown($.proxy(this._keyPressed,this)).keyup($.proxy(this._keyPressed,this)).blur($.proxy(this._keyPressed,this));$("#labelList").find('input[type="radio"]').each($.proxy(function(b,a){var c=$(a);if(c.prop("value")!=="custom"){this._labelList.push($(c.next("span")))}},this))},_keyPressed:function(){var a=this._labelInput.prop("value");if(a===""){a=WCF.Language.get("wcf.acp.label.defaultValue")}for(var c=0,b=this._labelList.length;c').appendTo(c)}if(this._showWithoutSelection){$('
  • '+WCF.Language.get("wcf.label.withoutSelection")+"
  • ").data("groupID",b).appendTo(c).click($.proxy(this._click,this))}if(!e.data("forceSelection")){var f=$('
  • '+WCF.Language.get("wcf.label.none")+"
  • ").data("groupID",b).appendTo(c);f.click($.proxy(this._click,this))}}},this))},_click:function(a){this._selectLabel($(a.currentTarget),false)},_selectLabel:function(a,c){var b=this._groups[a.data("groupID")];if(c&&b.data("labelID")!==undefined){return}if(a.data("labelID")){b.data("labelID",a.data("labelID"))}else{b.data("labelID",0)}a=a.find("span > span");b.find(".dropdownToggle > span").removeClass().addClass(a.attr("class")).text(a.text())},_submit:function(){var b=this._container.find(".formSubmit");b.find('input[type="hidden"]').each(function(e,d){var f=$(d);if(f.attr("name").indexOf("labelIDs[")===0){f.remove()}});for(var a in this._groups){var c=this._groups[a];if(c.data("labelID")){$('').appendTo(b)}}}}); \ No newline at end of file diff --git a/wcfsetup/install/files/js/WCF.Message.min.js b/wcfsetup/install/files/js/WCF.Message.min.js index d42b207965..701ac6ed23 100755 --- a/wcfsetup/install/files/js/WCF.Message.min.js +++ b/wcfsetup/install/files/js/WCF.Message.min.js @@ -1 +1 @@ -WCF.Message={};WCF.Message.BBCode={};WCF.Message.BBCode.CodeViewer=Class.extend({_dialog:null,init:function(){this._dialog=null;this._initCodeBoxes();WCF.DOMNodeInsertedHandler.addCallback("WCF.Message.BBCode.CodeViewer",$.proxy(this._initCodeBoxes,this));WCF.DOMNodeInsertedHandler.forceExecution()},_initCodeBoxes:function(){$(".codeBox:not(.jsCodeViewer)").each($.proxy(function(a,c){var b=$(c).addClass("jsCodeViewer");$('').appendTo(b.find("div > h3")).click($.proxy(this._click,this))},this))},_click:function(b){var a="";$(b.currentTarget).parents("div").next("ol").children("li").each(function(c,d){if(a){a+="\n"}a+=$(d).text().replace(/\n+$/,"")});if(this._dialog===null){this._dialog=$('