Set top level owner to top level widget.

Fixes error if read-only expansion runs off the top of the tree, and no owner found.
This commit is contained in:
Nathan Gray 2014-02-19 00:28:38 +00:00
parent 03c5e925c8
commit ac653d6c9a
2 changed files with 2 additions and 5 deletions

View File

@ -428,11 +428,6 @@ var et2_readonlysArrayMgr = et2_arrayMgr.extend(
*/
expandName: function(ident)
{
// this is a temp. workaround to get calendar conflicts working again
if (!this.perspectiveData.owner)
{
return this._super.apply(this, arguments);
}
return this.perspectiveData.owner.getArrayMgr('content').expandName(ident);
}
});

View File

@ -189,9 +189,11 @@ etemplate2.prototype._createArrayManagers = function(_data)
break;
case "readonlys":
result[key] = new et2_readonlysArrayMgr(_data[key]);
result[key].perspectiveData.owner = this.widgetContainer;
break;
default:
result[key] = new et2_arrayMgr(_data[key]);
result[key].perspectiveData.owner = this.widgetContainer;
}
}