mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 01:48:35 +01:00
fixed not translated empty_label in selectAccount or nextmatchAccountFilter: they always get translated independent of no_lang attribute
This commit is contained in:
parent
e0954288dd
commit
ece1062b8b
@ -83,11 +83,11 @@ var et2_selectAccount = et2_selectbox.extend(
|
|||||||
// Reference to object with dialog
|
// Reference to object with dialog
|
||||||
this.dialog = null;
|
this.dialog = null;
|
||||||
|
|
||||||
this._super.apply(this, arguments);
|
this._super.call(this, _parent, _attrs);
|
||||||
},
|
},
|
||||||
|
|
||||||
destroy: function() {
|
destroy: function() {
|
||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -105,8 +105,8 @@ var et2_selectAccount = et2_selectbox.extend(
|
|||||||
/**
|
/**
|
||||||
* Single selection - override to add search button
|
* Single selection - override to add search button
|
||||||
*/
|
*/
|
||||||
createInputWidget: function() {
|
createInputWidget: function()
|
||||||
|
{
|
||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
|
|
||||||
var type = this.egw().preference('account_selection', 'common');
|
var type = this.egw().preference('account_selection', 'common');
|
||||||
@ -616,11 +616,11 @@ var et2_selectAccount_ro = et2_link_string.extend([et2_IDetachedDOM],
|
|||||||
{
|
{
|
||||||
attributes: {
|
attributes: {
|
||||||
"empty_label": {
|
"empty_label": {
|
||||||
"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 ''",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
legacyOptions: ["empty_label"],
|
legacyOptions: ["empty_label"],
|
||||||
|
@ -110,7 +110,7 @@ var et2_selectbox = et2_inputWidget.extend(
|
|||||||
{
|
{
|
||||||
if(isNaN(this.options.rows))
|
if(isNaN(this.options.rows))
|
||||||
{
|
{
|
||||||
this.options.empty_label = this.egw().lang(this.options.rows);
|
this.options.empty_label = this.options.rows;
|
||||||
this.options.rows = 1;
|
this.options.rows = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -559,10 +559,10 @@ var et2_selectbox = et2_inputWidget.extend(
|
|||||||
{
|
{
|
||||||
this.multiOptions.empty();
|
this.multiOptions.empty();
|
||||||
}
|
}
|
||||||
// Re-add empty, it's usually not there
|
// Re-add empty, it's usually not there (empty_label get's allways translated, independent of no_lang!)
|
||||||
if(this.options.empty_label)
|
if(this.options.empty_label)
|
||||||
{
|
{
|
||||||
this._appendOptionElement('', this.options.no_lang ? this.options.empty_label : this.egw().lang(this.options.empty_label));
|
this._appendOptionElement('', this.egw().lang(this.options.empty_label));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the select_options
|
// Add the select_options
|
||||||
|
Loading…
Reference in New Issue
Block a user