mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 03:19:56 +01:00
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}
|
* @return Object { ids: [UIDs], inverted: boolean}
|
||||||
*/
|
*/
|
||||||
getSelection: function() {
|
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)
|
if(typeof selected == "object" && selected != null)
|
||||||
{
|
{
|
||||||
return selected;
|
return selected;
|
||||||
|
Loading…
Reference in New Issue
Block a user