summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-14 10:23:01 +0400
committerAndrew Dolgov <[email protected]>2013-04-14 10:23:01 +0400
commite8f9069c5c44fb4512247dbc9d280152e760331a (patch)
treeed5cc932c3cc205a6b4e69dd8c36a416c83e8b94 /js
parent96de8fea677d4c031700cadea16fc8c7b0de0172 (diff)
quickAddFeed: add placeholder select element to feeds dropdown
Diffstat (limited to 'js')
-rw-r--r--js/functions.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/functions.js b/js/functions.js
index 82cfa9054..07eed2ad9 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]});