From b4d597fbb52ff9d5095d61e9f8edadfc3e4dc0f0 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 10 Jun 2015 21:45:06 +0000 Subject: [PATCH] Add getWidget() method to default action object implementation for easier, direct access to the associated widget --- etemplate/js/et2_core_DOMWidget.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etemplate/js/et2_core_DOMWidget.js b/etemplate/js/et2_core_DOMWidget.js index c04235c510..716ad2b37d 100644 --- a/etemplate/js/et2_core_DOMWidget.js +++ b/etemplate/js/et2_core_DOMWidget.js @@ -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(); };