From 7100ca639471005be44baf3f7036c120dfe4166b Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Tue, 21 Jul 2009 10:12:23 +0000 Subject: fix view selection in Futon for Opera, patch by Alexander Uvarov, closes COUCHDB-369 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796234 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/futon.browse.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js index 84b3474e..a101138f 100644 --- a/share/www/script/futon.browse.js +++ b/share/www/script/futon.browse.js @@ -255,7 +255,7 @@ db.openDoc(resp.rows[i].id, { success: function(doc) { var optGroup = $(document.createElement("optgroup")) - .attr("label", doc._id.substr(8)); + .attr("label", doc._id.substr(8)).appendTo(select); for (var name in doc.views) { var option = $(document.createElement("option")) .attr("value", encodeURIComponent(doc._id) + "/_view/" + @@ -265,7 +265,6 @@ option[0].selected = true; } } - optGroup.appendTo(select); } }); } -- cgit v1.2.3