couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cml...@apache.org
Subject svn commit: r679846 - in /incubator/couchdb/trunk: THANKS share/www/script/browse.js
Date Fri, 25 Jul 2008 16:05:02 GMT
Author: cmlenz
Date: Fri Jul 25 09:05:01 2008
New Revision: 679846

URL: http://svn.apache.org/viewvc?rev=679846&view=rev
Log:
Apply patch by Yoan Blanc to fix the view selector in Futon for Opera and IE. Closes COUCHDB-81.

Modified:
    incubator/couchdb/trunk/THANKS
    incubator/couchdb/trunk/share/www/script/browse.js

Modified: incubator/couchdb/trunk/THANKS
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/THANKS?rev=679846&r1=679845&r2=679846&view=diff
==============================================================================
--- incubator/couchdb/trunk/THANKS (original)
+++ incubator/couchdb/trunk/THANKS Fri Jul 25 09:05:01 2008
@@ -8,6 +8,7 @@
 
  * 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>

Modified: incubator/couchdb/trunk/share/www/script/browse.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/script/browse.js?rev=679846&r1=679845&r2=679846&view=diff
==============================================================================
--- incubator/couchdb/trunk/share/www/script/browse.js [utf-8] (original)
+++ incubator/couchdb/trunk/share/www/script/browse.js [utf-8] Fri Jul 25 09:05:01 2008
@@ -178,9 +178,12 @@
           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;



Mime
View raw message