From e9eb87d6f4e39483fd21a998bd3ac2c13680c98e Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 23 Jul 2017 17:37:10 +0200 Subject: [PATCH] Add 'getselection' event to the list widget --- program/js/list.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/program/js/list.js b/program/js/list.js index 6fa7cf32e..7facad990 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -1257,7 +1257,12 @@ clear_selection: function(id, no_event) */ get_selection: function(deep) { - var res = $.merge([], this.selection); + var res; + + if (res = this.triggerEvent('getselection', deep)) + return res; + + res = $.merge([], this.selection); // return children of selected threads even if only root is selected if (deep !== false && res.length) {