From 68886b12bb737fc09bc28f0362673ebf46e08cf0 Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Fri, 25 Jul 2008 16:05:01 +0000 Subject: Apply patch by Yoan Blanc to fix the view selector in Futon for Opera and IE. Closes COUCHDB-81. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@679846 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/browse.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'share/www/script') diff --git a/share/www/script/browse.js b/share/www/script/browse.js index 7c6440dd..fa8abfbd 100644 --- a/share/www/script/browse.js +++ b/share/www/script/browse.js @@ -178,9 +178,12 @@ function CouchDatabasePage() { db.openDoc(resp.rows[i].id, { success: function(doc) { var optGroup = $("").attr("label", doc._id.substr(8)); + var optGroup = $(document.createElement("optgroup")) + .attr("label", doc._id.substr(8)); for (var name in doc.views) { if (!doc.views.hasOwnProperty(name)) continue; - var option = $("").attr("value", doc._id + "/" + name).text(name) + var option = $(document.createElement("option")) + .attr("value", doc._id + "/" + name).text(name) .appendTo(optGroup); if (doc._id + "/" + name == viewName) { option[0].selected = true; -- cgit v1.2.3