Commit f1415df4 authored by Andrew Dolgov's avatar Andrew Dolgov

prefs: expand feed tree if displaying search results

parent e7c9bc60
......@@ -1224,6 +1224,8 @@ class Pref_Feeds extends Handler_Protected {
<img src='images/indicator_tiny.gif'>".
__("Loading, please wait...")."</div>";
$auto_expand = $feed_search != "" ? "true" : "false";
print "<div dojoType=\"fox.PrefFeedStore\" jsId=\"feedStore\"
url=\"backend.php?op=pref-feeds&method=getfeedtree\">
</div>
......@@ -1234,7 +1236,7 @@ class Pref_Feeds extends Handler_Protected {
<div dojoType=\"fox.PrefFeedTree\" id=\"feedTree\"
dndController=\"dijit.tree.dndSource\"
betweenThreshold=\"5\"
autoExpand='false'
autoExpand='$auto_expand'
model=\"feedModel\" openOnClick=\"false\">
<script type=\"dojo/method\" event=\"onClick\" args=\"item\">
var id = String(item.id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment