Permalink
Browse files

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
  • Loading branch information...
1 parent ad33fcc commit 68886b12bb737fc09bc28f0362673ebf46e08cf0 @cmlenz cmlenz committed Jul 25, 2008
Showing with 5 additions and 1 deletion.
  1. +1 −0 THANKS
  2. +4 −1 share/www/script/browse.js
View
1 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>
@@ -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;

0 comments on commit 68886b1

Please sign in to comment.