forked from extern/egroupware
Add a function getSelection() so application code can more easily find the IDs
This commit is contained in:
parent
555582eb44
commit
3332eec106
@ -340,6 +340,20 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput], {
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets the selection
|
||||
*
|
||||
* @return Object { ids: [UIDs], inverted: boolean}
|
||||
*/
|
||||
getSelection: function() {
|
||||
var selected = this.controller._selectionMgr.getSelected();
|
||||
if(typeof selected == "object" && selected != null)
|
||||
{
|
||||
return selected;
|
||||
}
|
||||
return {ids:[],inverted:false};
|
||||
},
|
||||
|
||||
/**
|
||||
* Generates the column caption for the given column widget
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user