No need to translate empty_label explicitly, as we have a "translate" sub-attribute to triger translation for an attribute

This commit is contained in:
Hadi Nategh 2014-05-07 12:12:25 +00:00
parent a8278017ed
commit c35968d4a6

View File

@ -33,7 +33,8 @@ var et2_taglist = et2_selectbox.extend(
"name": "Empty label", "name": "Empty label",
"type": "string", "type": "string",
"default": "", "default": "",
"description": "Textual label for when nothing is selected" "description": "Textual label for when nothing is selected",
translate: true
}, },
"select_options": { "select_options": {
"type": "any", "type": "any",
@ -153,7 +154,7 @@ var et2_taglist = et2_selectbox.extend(
method: 'GET', method: 'GET',
displayField: "label", displayField: "label",
invalidCls: 'invalid ui-state-error', invalidCls: 'invalid ui-state-error',
emptyText: this.egw().lang(this.options.empty_label), emptyText: this.options.empty_label,
hideTrigger: true, hideTrigger: true,
noSuggestionText: this.egw().lang("No suggestions"), noSuggestionText: this.egw().lang("No suggestions"),
required: this.options.required, required: this.options.required,
@ -472,7 +473,7 @@ var et2_taglist_email = et2_taglist.extend(
default: false, default: false,
type: "boolean" type: "boolean"
} }
}, },
lib_options: { lib_options: {
// Search function limits to 3 anyway // Search function limits to 3 anyway
minChars: 3 minChars: 3