]> git.wh0rd.org Git - tt-rss.git/commitdiff
quickAddFeed: add placeholder select element to feeds dropdown
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 14 Apr 2013 06:23:01 +0000 (10:23 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 14 Apr 2013 06:23:01 +0000 (10:23 +0400)
js/functions.js

index 82cfa90549d27dccf83f1065ebea817ec2c365b2..07eed2ad9aee08139446aa751a757d4d080c3d9c 100644 (file)
@@ -810,7 +810,7 @@ function quickAddFeed() {
                                                                notify('');
                                                                Element.hide("feed_add_spinner");
 
-                                                               console.log("GOT RC: " + rc);
+                                                               console.log(rc);
 
                                                                switch (parseInt(rc['code'])) {
                                                                case 1:
@@ -866,6 +866,8 @@ function quickAddFeed() {
                                                                        while (select.getOptions().length > 0)
                                                                                select.removeOption(0);
 
+                                                                       select.addOption({value: '', label: __("Expand to select feed")});
+
                                                                        var count = 0;
                                                                        for (var feedUrl in feeds) {
                                                                                select.addOption({value: feedUrl, label: feeds[feedUrl]});