Fix 'last' property of search event

pull/300/head
Aleksander Machniak 9 years ago
parent 13eb9bdc24
commit e524680a13

@ -583,10 +583,11 @@ function rcube_treelist_widget(node, p)
// search recursively in tree (to keep sorting order)
search_tree(data);
search_active = true;
last_search = q;
me.triggerEvent('search', { query: q, last: last_search, count: hits.length, ids: hits, execute: enter||false });
last_search = q;
return hits.count;
}

Loading…
Cancel
Save