mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:35:55 +00:00
quickAddFeed: add placeholder select element to feeds dropdown
This commit is contained in:
@@ -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]});
|
||||||
|
|||||||
Reference in New Issue
Block a user