Get images working in buttons, sort of

-- Don't know what's happening with events in the grid.  Something happens if you double click, but it's not the button's click method.
This commit is contained in:
Nathan Gray
2011-09-14 18:37:38 +00:00
parent 8b1a63e1ee
commit 812242a224
3 changed files with 72 additions and 5 deletions

View File

@@ -230,6 +230,10 @@ var et2_dataview_rowProvider = Class.extend({
},
_nodeIndex: function(_node) {
if(_node.parentNode == null)
{
return 0;
}
for (var i = 0; i < _node.parentNode.childNodes.length; i++)
{
if (_node.parentNode.childNodes[i] == _node)
@@ -402,7 +406,7 @@ var et2_dataview_rowProvider = Class.extend({
}
// Adjust data for that row
entry.widget.transformAttributes(data);
entry.widget.transformAttributes.call(entry.widget,data);
// Call the setDetachedAttributes function
entry.widget.setDetachedAttributes(nodes, data);