prefs: expand feed tree if displaying search results
This commit is contained in:
parent
e7c9bc60ec
commit
f1415df47c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue