1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-20 14:41:29 +00:00

dropbox_replace_options: only copy value when present

This commit is contained in:
Andrew Dolgov
2010-11-09 14:57:06 +03:00
parent c3fc5e470e
commit 11eb3f4e54

View File

@@ -2285,6 +2285,9 @@ function dropbox_replace_options(elem, options) {
for (var i = 0; i < options.length; i++) {
var text = options[i].firstChild.nodeValue;
var value = options[i].getAttribute("value");
if (value == undefined) value = text;
var issel = options[i].getAttribute("selected") == "1";
var option = new Option(text, value, issel);