Add 'getselection' event to the list widget

pull/5879/head
Aleksander Machniak 7 years ago
parent c2068070df
commit e9eb87d6f4

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

Loading…
Cancel
Save