]> git.wh0rd.org Git - tt-rss.git/commitdiff
tweak top25 feeds dialog when no feeds are found
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 14 Aug 2008 05:48:54 +0000 (06:48 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 14 Aug 2008 05:48:54 +0000 (06:48 +0100)
modules/pref-feeds.php

index be4016038a61a13ee43c17b7ecdacbdb8cf10de2..50b8013e3fe0aece42ac0c563b23905da05e2a09 100644 (file)
                        }
 
                        if ($feedctr == 0) {
-                               print "<li>".__('No feeds found to subscribe.')."</li>";
+                               print "<li style=\"text-align : center\"><p>".__('No feeds found.')."</p></li>";
+                               $subscribe_btn_disabled = "disabled";
+                       } else {
+                               $subscribe_btn_disabled = "";
                        }
 
                        print "</ul>";
 
                        print "<div align='center'>
                                <input type=\"submit\" class=\"button\" 
+                               $subscribe_btn_disabled
                                onclick=\"feedBrowserSubscribe()\" value=\"".__('Subscribe')."\">
                                <input type='submit' class='button'                     
                                onclick=\"closeInfoBox()\" value=\"".__('Cancel')."\"></div>";