summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2008-07-25 16:05:01 +0000
committerChristopher Lenz <cmlenz@apache.org>2008-07-25 16:05:01 +0000
commit68886b12bb737fc09bc28f0362673ebf46e08cf0 (patch)
tree5190ecb388f6b3c5d4b9c82beb68d6b673e3d870
parentad33fcc53b94140952d7ccad8ed186fa5c59dbe8 (diff)
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
-rw-r--r--THANKS1
-rw-r--r--share/www/script/browse.js5
2 files changed, 5 insertions, 1 deletions
diff --git a/THANKS b/THANKS
index f5270508..307fb3df 100644
--- a/THANKS
+++ b/THANKS
@@ -8,6 +8,7 @@ changes. A list of these people is included below.
* Chris Anderson <jchris@grabb.it>
* William Beh <willbeh@gmail.com>
+ * Yoan Blanc <yoan.blanc@gmail.com>
* Benoit Chesneau <bchesneau@gmail.com>
* Paul Joseph Davis <paul.joseph.davis@gmail.com>
* Till Klampaeckel <till@klampaeckel.de>
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 = $("<optgroup></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 = $("<option></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;