mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Explicitly set taglist empty label 'Select some options' when missing so it can be translated
This commit is contained in:
parent
f7ff5e6c26
commit
92e818f429
@ -145,6 +145,10 @@ var et2_selectbox = (function(){ "use strict"; return et2_inputWidget.extend(
|
||||
{
|
||||
this.createInputWidget();
|
||||
}
|
||||
if(!this.options.empty_label && this.options.multiple)
|
||||
{
|
||||
this.options.empty_label = this.egw().lang('Select some options');
|
||||
}
|
||||
},
|
||||
|
||||
destroy: function() {
|
||||
@ -408,13 +412,11 @@ var et2_selectbox = (function(){ "use strict"; return et2_inputWidget.extend(
|
||||
.addClass('ui-helper-reset')
|
||||
.appendTo(header);
|
||||
|
||||
if(this.options.empty_label)
|
||||
{
|
||||
jQuery(document.createElement("span"))
|
||||
.text(this.options.empty_label)
|
||||
.addClass("ui-multiselect-header")
|
||||
.appendTo(header);
|
||||
}
|
||||
|
||||
|
||||
// Set up for options to be added later
|
||||
var options = this.multiOptions = jQuery(document.createElement("ul"));
|
||||
|
Loading…
Reference in New Issue
Block a user