- Clean up some link sub-widgets to make them operate a little nicer / more consistently

- Check attrs for already existing select_options too, should speed up selectboxes a little more
This commit is contained in:
Nathan Gray
2013-11-04 19:00:43 +00:00
parent 5b7f804877
commit a2faa9bd00
2 changed files with 31 additions and 31 deletions

View File

@ -145,7 +145,9 @@ var et2_selectbox = et2_inputWidget.extend(
this._super.apply(this, arguments);
// If select_options are already known, skip the rest
if(this.options && this.options.select_options && !jQuery.isEmptyObject(this.options.select_options))
if(this.options && this.options.select_options && !jQuery.isEmptyObject(this.options.select_options) ||
_attrs.select_options && !jQuery.isEmptyObject(_attrs.select_options)
)
{
return;
}