Fix missing "translate" sub-attribute for some other widgets "empty_label" attribute.

This commit is contained in:
Hadi Nategh 2014-05-07 12:23:02 +00:00
parent c35968d4a6
commit b3ebc04ae5
3 changed files with 9 additions and 5 deletions

View File

@ -46,7 +46,8 @@ var et2_link_to = et2_inputWidget.extend(
"name": "Placeholder", "name": "Placeholder",
"type": "string", "type": "string",
"default": "", "default": "",
"description": "This text get displayed if an input-field is empty and does not have the input-focus (blur). It can be used to show a default value or a kind of help-text." "description": "This text get displayed if an input-field is empty and does not have the input-focus (blur). It can be used to show a default value or a kind of help-text.",
translate:true
}, },
"no_files": { "no_files": {
"name": "No files", "name": "No files",
@ -506,7 +507,8 @@ var et2_link_entry = et2_inputWidget.extend(
"name": "Placeholder", "name": "Placeholder",
"type": "string", "type": "string",
"default": et2_no_init, "default": et2_no_init,
"description": "This text get displayed if an input-field is empty and does not have the input-focus (blur). It can be used to show a default value or a kind of help-text." "description": "This text get displayed if an input-field is empty and does not have the input-focus (blur). It can be used to show a default value or a kind of help-text.",
translate:true
}, },
"query": { "query": {
"name": "Query callback", "name": "Query callback",

View File

@ -647,6 +647,7 @@ var et2_selectAccount_ro = et2_link_string.extend([et2_IDetachedDOM],
"type": "string", "type": "string",
"default": "", "default": "",
"description": "Textual label for first row, eg: 'All' or 'None'. ID will be ''", "description": "Textual label for first row, eg: 'All' or 'None'. ID will be ''",
translate:true
}, },
}, },

View File

@ -51,7 +51,8 @@ var et2_selectbox = et2_inputWidget.extend(
"name": "Empty label", "name": "Empty label",
"type": "string", "type": "string",
"default": "", "default": "",
"description": "Textual label for first row, eg: 'All' or 'None'. ID will be ''" "description": "Textual label for first row, eg: 'All' or 'None'. ID will be ''",
translate:true
}, },
"select_options": { "select_options": {
"type": "any", "type": "any",
@ -586,7 +587,7 @@ var et2_selectbox = et2_inputWidget.extend(
{ {
if(this.options.empty_label) if(this.options.empty_label)
{ {
this.input.attr("data-placeholder", this.egw().lang(this.options.empty_label)); this.input.attr("data-placeholder", this.options.empty_label);
// Remove from list of options, if multiple // Remove from list of options, if multiple
if (this.options.multiple) if (this.options.multiple)
{ {
@ -627,7 +628,7 @@ var et2_selectbox = et2_inputWidget.extend(
// Empty label should not be added as an option for chosen, it conflicts // Empty label should not be added as an option for chosen, it conflicts
if(this.options.empty_label && !(this.options.tags || this.options.search)) if(this.options.empty_label && !(this.options.tags || this.options.search))
{ {
this._appendOptionElement('', this.egw().lang(this.options.empty_label)); this._appendOptionElement('',this.options.empty_label);
} }
// Add the select_options // Add the select_options