Fix attribute defaults getting changed, options no longer get copied across selectboxes

This commit is contained in:
Nathan Gray 2011-10-13 16:06:56 +00:00
parent 01e92100c4
commit 7f9bbe99a3

View File

@ -82,7 +82,7 @@ var et2_selectbox = et2_inputWidget.extend({
var content_options = this.getArrayMgr("sel_options").getEntry(this.id);
if(_attrs["select_options"] && content_options)
{
_attrs["select_options"] = jQuery.merge(_attrs["select_options"],content_options);
_attrs["select_options"] = jQuery.extend({},_attrs["select_options"],content_options);
} else if (content_options) {
_attrs["select_options"] = content_options;
}