From 3332eec1064c47c119ab63552bd827e4c93bec3d Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 20 Mar 2013 22:10:51 +0000 Subject: [PATCH] Add a function getSelection() so application code can more easily find the IDs --- etemplate/js/et2_extension_nextmatch.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 */