diff --git a/etemplate/js/et2_extension_nextmatch.js b/etemplate/js/et2_extension_nextmatch.js index 0d28a52b84..69210c857e 100644 --- a/etemplate/js/et2_extension_nextmatch.js +++ b/etemplate/js/et2_extension_nextmatch.js @@ -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 */