From: Andrew Dolgov Date: Sun, 14 Apr 2013 06:23:01 +0000 (+0400) Subject: quickAddFeed: add placeholder select element to feeds dropdown X-Git-Tag: 1.7.9~25^2~226 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e8f9069c5c44fb4512247dbc9d280152e760331a;p=tt-rss.git quickAddFeed: add placeholder select element to feeds dropdown --- diff --git a/js/functions.js b/js/functions.js index 82cfa905..07eed2ad 100644 --- a/js/functions.js +++ b/js/functions.js @@ -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]});