Make sure search button / header is visible even for short selectboxes

This commit is contained in:
Nathan Gray 2012-07-05 20:16:19 +00:00
parent 369993d439
commit 6a7b991fb7

View File

@ -293,6 +293,9 @@ var et2_selectbox = et2_inputWidget.extend({
var header = jQuery(document.createElement("div"))
.addClass("ui-widget-header ui-helper-clearfix")
.appendTo(node);
var controls = jQuery(document.createElement("ul"))
.addClass('ui-helper-reset')
.appendTo(header);
if(this.options.empty_label)
{
@ -327,9 +330,6 @@ var et2_selectbox = et2_inputWidget.extend({
}
}
}
var controls = jQuery(document.createElement("ul"))
.addClass('ui-helper-reset')
.appendTo(header);
for(var key in header_controls)
{
jQuery(document.createElement("li"))