forked from extern/egroupware
Check to make sure selectionMgr is there before trying to use it
This commit is contained in:
parent
9c3c077314
commit
680ce48fef
@ -475,7 +475,7 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput],
|
||||
* @return Object { ids: [UIDs], inverted: boolean}
|
||||
*/
|
||||
getSelection: function() {
|
||||
var selected = this.controller._selectionMgr.getSelected();
|
||||
var selected = this.controller && this.controller._selectionMgr ? this.controller._selectionMgr.getSelected() : null;
|
||||
if(typeof selected == "object" && selected != null)
|
||||
{
|
||||
return selected;
|
||||
|
Loading…
Reference in New Issue
Block a user