From: Andrew Dolgov Date: Tue, 9 Nov 2010 11:57:06 +0000 (+0300) Subject: dropbox_replace_options: only copy value when present X-Git-Tag: 1.5.0~339 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=11eb3f4e544804b1f7d7155de99510c77ee4c5d2;p=tt-rss.git dropbox_replace_options: only copy value when present --- diff --git a/functions.js b/functions.js index 09582fea..4942b50c 100644 --- a/functions.js +++ b/functions.js @@ -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);