When turning on tag mode, remove empty label from options.

This commit is contained in:
Nathan Gray 2013-11-15 16:51:49 +00:00
parent 8e69433829
commit 26888ce64c

View File

@ -598,6 +598,8 @@ 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
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);