summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2009-07-21 10:12:23 +0000
committerJan Lehnardt <jan@apache.org>2009-07-21 10:12:23 +0000
commit7100ca639471005be44baf3f7036c120dfe4166b (patch)
treef74c428eed81c736c9f6245218b00f3377bf3d8a /share
parent1fe39bbdcba1c660eccb8479d0dd3a6eb6959f1c (diff)
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
Diffstat (limited to 'share')
-rw-r--r--share/www/script/futon.browse.js3
1 files changed, 1 insertions, 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);
}
});
}