_atts["select_options"] is not null but {}

This commit is contained in:
Ralf Becker 2013-04-28 12:42:13 +00:00
parent 26c66d12d7
commit 947511779a

View File

@ -212,7 +212,7 @@ var et2_selectbox = et2_inputWidget.extend(
// Check whether the options entry was found, if not read it from the
// content array.
if (_attrs["select_options"] == null)
if (jQuery.isEmptyObject(_attrs["select_options"]))
{
// Again, try last name part at top level
var content_options = this.getArrayMgr('content').getRoot().getEntry(name_parts[name_parts.length-1]);