mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
Fix missing "translate" sub-attribute for some other widgets "empty_label" attribute.
This commit is contained in:
parent
c35968d4a6
commit
b3ebc04ae5
@ -46,7 +46,8 @@ var et2_link_to = et2_inputWidget.extend(
|
||||
"name": "Placeholder",
|
||||
"type": "string",
|
||||
"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": {
|
||||
"name": "No files",
|
||||
@ -506,7 +507,8 @@ var et2_link_entry = et2_inputWidget.extend(
|
||||
"name": "Placeholder",
|
||||
"type": "string",
|
||||
"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": {
|
||||
"name": "Query callback",
|
||||
|
@ -647,6 +647,7 @@ var et2_selectAccount_ro = et2_link_string.extend([et2_IDetachedDOM],
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"description": "Textual label for first row, eg: 'All' or 'None'. ID will be ''",
|
||||
translate:true
|
||||
},
|
||||
},
|
||||
|
||||
|
@ -51,7 +51,8 @@ var et2_selectbox = et2_inputWidget.extend(
|
||||
"name": "Empty label",
|
||||
"type": "string",
|
||||
"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": {
|
||||
"type": "any",
|
||||
@ -586,7 +587,7 @@ var et2_selectbox = et2_inputWidget.extend(
|
||||
{
|
||||
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
|
||||
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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user