From 200c9e55fec44714b594df2a96ee3f3e9ba13946 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 11 Oct 2013 13:02:22 +0000 Subject: [PATCH] dont replace value&label "" with empty_label, as empty_label is allways added, ignoring it here, to not add it twice --- etemplate/js/et2_widget_selectbox.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/etemplate/js/et2_widget_selectbox.js b/etemplate/js/et2_widget_selectbox.js index 71cfaf43fd..96136f60d7 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -237,14 +237,13 @@ var et2_selectbox = et2_inputWidget.extend( */ _appendOptionElement: function(_value, _label, _title, dom_element) { if(_value == "" && (_label == null || _label == "")) { - _label = this.options.empty_label; + return; // empty_label is added in set_select_options anyway, ignoring it here to not add it twice } if(this.input == null) { return this._appendMultiOption(_value, _label, _title, dom_element); } - var option = $j(document.createElement("option")) .attr("value", _value) @@ -568,7 +567,6 @@ var et2_selectbox = et2_inputWidget.extend( // Add the select_options for (var key in _options) { - // Translate the options if(!this.options.no_lang) {