prefs: expand feed tree if displaying search results

This commit is contained in:
Andrew Dolgov 2018-02-26 11:58:53 +03:00
parent e7c9bc60ec
commit f1415df47c
1 changed files with 3 additions and 1 deletions

View File

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