quickAddFeed: add placeholder select element to feeds dropdown

This commit is contained in:
Andrew Dolgov 2013-04-14 10:23:01 +04:00
parent 96de8fea67
commit e8f9069c5c
1 changed files with 3 additions and 1 deletions

View 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]});