couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r796234 - /couchdb/trunk/share/www/script/futon.browse.js
Date Tue, 21 Jul 2009 10:12:23 GMT
Author: jan
Date: Tue Jul 21 10:12:23 2009
New Revision: 796234

URL: http://svn.apache.org/viewvc?rev=796234&view=rev
Log:
fix view selection in Futon for Opera, patch by Alexander Uvarov, closes COUCHDB-369

Modified:
    couchdb/trunk/share/www/script/futon.browse.js

Modified: couchdb/trunk/share/www/script/futon.browse.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/futon.browse.js?rev=796234&r1=796233&r2=796234&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/futon.browse.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/futon.browse.js [utf-8] Tue Jul 21 10:12:23 2009
@@ -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);
                 }
               });
             }



Mime
View raw message