forked from extern/egroupware
some fixes to get "add favorite" in regular calendar views do something
This commit is contained in:
parent
921eaf73f1
commit
8da1afca1e
@ -180,7 +180,7 @@ var et2_inputWidget = et2_valueWidget.extend([et2_IInput,et2_ISubmitListener],
|
||||
|
||||
set_id: function(_value) {
|
||||
this.id = _value;
|
||||
this.dom_id = _value ? this.getInstanceManager().uniqueId+'_'+this.id : _value;
|
||||
this.dom_id = _value && this.getInstanceManager() ? this.getInstanceManager().uniqueId+'_'+this.id : _value;
|
||||
|
||||
// Set the id of the _input_ node (in contrast to the default
|
||||
// implementation, which sets the base node)
|
||||
|
@ -224,12 +224,16 @@ var et2_selectbox = et2_inputWidget.extend(
|
||||
// Check whether the options entry was found, if not read it from the
|
||||
// content array.
|
||||
if (jQuery.isEmptyObject(_attrs["select_options"]))
|
||||
{
|
||||
if (content_options) _attrs['select_options'] = content_options;
|
||||
var content_mgr = this.getArrayMgr('content');
|
||||
if (content_mgr)
|
||||
{
|
||||
// If that didn't work, check according to ID
|
||||
_attrs["select_options"] = content_options ? content_options : this.getArrayMgr('content')
|
||||
.getEntry("options-" + this.id);
|
||||
if (!content_options) _attrs["select_options"] = content_mgr.getEntry("options-" + this.id);
|
||||
// Again, try last name part at top level - this is usually just the value
|
||||
var content_options = this.getArrayMgr('content').getRoot().getEntry(name_parts[name_parts.length-1]);
|
||||
var content_options = content_mgr.getRoot().getEntry(name_parts[name_parts.length-1]);
|
||||
}
|
||||
}
|
||||
|
||||
// Default to an empty object
|
||||
|
Loading…
Reference in New Issue
Block a user