forked from extern/egroupware
Grid row action enhancements:
- If row has a key 'id', set the egwActionObject id to match instead of just row_[i] - Pass the row content in egwActionObject's data, so it's available during action processing
This commit is contained in:
parent
9f9f5184fc
commit
3b915de4cb
@ -916,8 +916,15 @@ var et2_grid = et2_DOMWidget.extend([et2_IDetachedDOM, et2_IAligned],
|
||||
// Add a new action object to the object manager
|
||||
var row = $j('tr', this.tbody)[i];
|
||||
var aoi = new et2_action_object_impl(this, row);
|
||||
var content = this.getArrayMgr('content').getEntry(i);
|
||||
var obj = widget_object.addObject(content.id || "row_"+i, aoi);
|
||||
|
||||
// Set the data to the content so it's available for the action
|
||||
if(content)
|
||||
{
|
||||
obj.data = content;
|
||||
}
|
||||
|
||||
var obj = widget_object.addObject("row_"+i, aoi);
|
||||
obj.updateActionLinks(action_links);
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user