From 06c6034fbe1e4be2658fcf340e25e6c3b167bd6b Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 15 Aug 2013 16:30:13 +0200 Subject: [PATCH] Small optimization --- wcfsetup/install/files/acp/templates/styleAdd.tpl | 3 ++- wcfsetup/install/files/js/WCF.ColorPicker.js | 2 +- wcfsetup/install/lang/de.xml | 1 + wcfsetup/install/lang/en.xml | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/styleAdd.tpl b/wcfsetup/install/files/acp/templates/styleAdd.tpl index 6ecd77bcd2..720407477d 100644 --- a/wcfsetup/install/files/acp/templates/styleAdd.tpl +++ b/wcfsetup/install/files/acp/templates/styleAdd.tpl @@ -28,7 +28,8 @@ 'wcf.global.button.upload': '{lang}wcf.global.button.upload{/lang}', 'wcf.style.colorPicker': '{lang}wcf.style.colorPicker{/lang}', 'wcf.style.colorPicker.new': '{lang}wcf.style.colorPicker.new{/lang}', - 'wcf.style.colorPicker.current': '{lang}wcf.style.colorPicker.current{/lang}' + 'wcf.style.colorPicker.current': '{lang}wcf.style.colorPicker.current{/lang}', + 'wcf.style.colorPicker.button.apply': '{lang}wcf.style.colorPicker.button.apply{/lang}' }); new WCF.ACP.Style.ImageUpload({if $action == 'add'}0{else}{@$style->styleID}{/if}, '{$tmpHash}'); diff --git a/wcfsetup/install/files/js/WCF.ColorPicker.js b/wcfsetup/install/files/js/WCF.ColorPicker.js index e22db23801..9644813c8e 100644 --- a/wcfsetup/install/files/js/WCF.ColorPicker.js +++ b/wcfsetup/install/files/js/WCF.ColorPicker.js @@ -252,7 +252,7 @@ WCF.ColorPicker = Class.extend({ // submit button var $submitForm = $('
').appendTo(this._dialog); - $('').appendTo($submitForm).click($.proxy(this._submit, this)); + $('').appendTo($submitForm).click($.proxy(this._submit, this)); // allow pasting of colors like '#888888' var self = this; diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 393349cb41..cd0928f02f 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -1888,6 +1888,7 @@ Erlaubte Dateiendungen: {', '|implode:$attachmentHandler->getFormattedAllowedExt + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 6f76899b40..45c331a575 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -1887,6 +1887,7 @@ Allowed extensions: {', '|implode:$attachmentHandler->getFormattedAllowedExtensi + -- 2.20.1