summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-08-07 18:00:31 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-08-07 18:00:31 +0200
commit00dd283999fd42870bc2ea8412a4e39f7c52060c (patch)
treef4ce2784194c8904dbece5b8f03bb39bf9bdf1d5 /program
parentdddebd82206952fa0e5e2cb1f0fe6b1d24eff0c6 (diff)
Getter to detect if treelist widget is in search mode
Diffstat (limited to 'program')
-rw-r--r--program/js/treelist.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/program/js/treelist.js b/program/js/treelist.js
index 5071026f1..916cf0e2d 100644
--- a/program/js/treelist.js
+++ b/program/js/treelist.js
@@ -93,6 +93,7 @@ function rcube_treelist_widget(node, p)
this.get_item = get_item;
this.get_node = get_node;
this.get_selection = get_selection;
+ this.is_search = is_search;
/////// startup code (constructor)
@@ -575,6 +576,14 @@ function rcube_treelist_widget(node, p)
}
/**
+ *
+ */
+ function is_search()
+ {
+ return search_active;
+ }
+
+ /**
* Render the tree list from the internal data structure
*/
function render()