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) {