Add getWidget() method to default action object implementation for easier, direct access to the associated widget

This commit is contained in:
Nathan Gray 2015-06-10 21:45:06 +00:00
parent 43a1429804
commit b4d597fbb5

View File

@ -772,6 +772,10 @@ function et2_action_object_impl(widget, node)
var aoi = new egwActionObjectInterface();
var objectNode = node;
aoi.getWidget = function() {
return widget;
};
aoi.doGetDOMNode = function() {
return objectNode?objectNode:widget.getDOMNode();
};