Try not to remove options value for type "select-number" becasue we need it to display rows in legacy_options

This commit is contained in:
Hadi Nategh 2013-11-21 17:39:44 +00:00
parent 03327b4bb1
commit a5043743a8

View File

@ -598,8 +598,11 @@ 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.egw().lang(this.options.empty_label));
// Remove from list of options, if there // Remove from list of options, if there (exception:"select-number" type)
this.input.children('[value=""]').remove(); if (this._type !== "select-number")
{
this.input.children('[value=""]').remove();
}
} }
// Properly size chosen, even if on a hidden tab // Properly size chosen, even if on a hidden tab
var size = egw.getHiddenDimensions(this.input); var size = egw.getHiddenDimensions(this.input);