From c35968d4a6ae556058c5555516419cfa45a1f289 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 7 May 2014 12:12:25 +0000 Subject: [PATCH] No need to translate empty_label explicitly, as we have a "translate" sub-attribute to triger translation for an attribute --- etemplate/js/et2_widget_taglist.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/etemplate/js/et2_widget_taglist.js b/etemplate/js/et2_widget_taglist.js index b51ecad14d..5b8ed16a13 100644 --- a/etemplate/js/et2_widget_taglist.js +++ b/etemplate/js/et2_widget_taglist.js @@ -33,7 +33,8 @@ var et2_taglist = et2_selectbox.extend( "name": "Empty label", "type": "string", "default": "", - "description": "Textual label for when nothing is selected" + "description": "Textual label for when nothing is selected", + translate: true }, "select_options": { "type": "any", @@ -153,7 +154,7 @@ var et2_taglist = et2_selectbox.extend( method: 'GET', displayField: "label", invalidCls: 'invalid ui-state-error', - emptyText: this.egw().lang(this.options.empty_label), + emptyText: this.options.empty_label, hideTrigger: true, noSuggestionText: this.egw().lang("No suggestions"), required: this.options.required, @@ -472,7 +473,7 @@ var et2_taglist_email = et2_taglist.extend( default: false, type: "boolean" } - }, + }, lib_options: { // Search function limits to 3 anyway minChars: 3