mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-17 20:11:23 +02:00
Fix actions over grid always return the last row DOMNode, by passing DOMNode to et2_action_object_impl constructor for cases like the infamous loop problem (JS closure)
This commit is contained in:
@@ -704,12 +704,16 @@ var et2_surroundingsMgr = Class.extend(
|
||||
* The class extension is different than the widgets
|
||||
*
|
||||
* @param {et2_DOMWidget} widget
|
||||
* @param {Object} node
|
||||
*
|
||||
*/
|
||||
function et2_action_object_impl(widget)
|
||||
function et2_action_object_impl(widget, node)
|
||||
{
|
||||
var aoi = new egwActionObjectInterface();
|
||||
var objectNode = node;
|
||||
|
||||
aoi.doGetDOMNode = function() {
|
||||
return widget.getDOMNode();
|
||||
return objectNode?objectNode:widget.getDOMNode();
|
||||
};
|
||||
|
||||
// _outerCall may be used to determine, whether the state change has been
|
||||
@@ -732,7 +736,7 @@ function et2_action_object_impl(widget)
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
return aoi;
|
||||
};
|
||||
|
Reference in New Issue
Block a user