]> git.wh0rd.org Git - tt-rss.git/commitdiff
prefs: expand feed tree if displaying search results
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 26 Feb 2018 08:58:53 +0000 (11:58 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 26 Feb 2018 08:58:53 +0000 (11:58 +0300)
classes/pref/feeds.php

index 71b81e1da6a84a4ac5347474676b78687fa980a3..c0b209f57cae11075051104b569250764100e92f 100755 (executable)
@@ -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);