mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-09 00:14:57 +02:00
Make sure empty / all / none option is first in the list
This commit is contained in:
@ -162,7 +162,15 @@ var et2_selectbox = et2_inputWidget.extend({
|
||||
{
|
||||
option.attr("title", _title);
|
||||
}
|
||||
if(_label == this.options.empty_label || this.options.empty_label == "" && _value == "")
|
||||
{
|
||||
// Make sure empty / all option is first
|
||||
option.prependTo(this.input);
|
||||
}
|
||||
else
|
||||
{
|
||||
option.appendTo(this.input);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user