Skip to content

Commit

Permalink
Apply patch by Yoan Blanc to fix the view selector in Futon for Opera…
Browse files Browse the repository at this point in the history
… 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
cmlenz committed Jul 25, 2008
1 parent ad33fcc commit 68886b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions THANKS
Expand Up @@ -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>
Expand Down
5 changes: 4 additions & 1 deletion share/www/script/browse.js
Expand Up @@ -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;
Expand Down

0 comments on commit 68886b1

Please sign in to comment.