quickAddFeed: add placeholder select element to feeds dropdown
This commit is contained in:
parent
96de8fea67
commit
e8f9069c5c
|
@ -810,7 +810,7 @@ function quickAddFeed() {
|
||||||
notify('');
|
notify('');
|
||||||
Element.hide("feed_add_spinner");
|
Element.hide("feed_add_spinner");
|
||||||
|
|
||||||
console.log("GOT RC: " + rc);
|
console.log(rc);
|
||||||
|
|
||||||
switch (parseInt(rc['code'])) {
|
switch (parseInt(rc['code'])) {
|
||||||
case 1:
|
case 1:
|
||||||
|
@ -866,6 +866,8 @@ function quickAddFeed() {
|
||||||
while (select.getOptions().length > 0)
|
while (select.getOptions().length > 0)
|
||||||
select.removeOption(0);
|
select.removeOption(0);
|
||||||
|
|
||||||
|
select.addOption({value: '', label: __("Expand to select feed")});
|
||||||
|
|
||||||
var count = 0;
|
var count = 0;
|
||||||
for (var feedUrl in feeds) {
|
for (var feedUrl in feeds) {
|
||||||
select.addOption({value: feedUrl, label: feeds[feedUrl]});
|
select.addOption({value: feedUrl, label: feeds[feedUrl]});
|
||||||
|
|
Loading…
Reference in New Issue