couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cml...@apache.org
Subject svn commit: r659537 - in /incubator/couchdb/trunk/share/www: browse/database.html script/browse.js
Date Fri, 23 May 2008 13:38:02 GMT
Author: cmlenz
Date: Fri May 23 06:38:01 2008
New Revision: 659537

URL: http://svn.apache.org/viewvc?rev=659537&view=rev
Log:
Fix 'save as' for map/reduce views in Futon.

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

Modified: incubator/couchdb/trunk/share/www/browse/database.html
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/browse/database.html?rev=659537&r1=659536&r2=659537&view=diff
==============================================================================
--- incubator/couchdb/trunk/share/www/browse/database.html [utf-8] (original)
+++ incubator/couchdb/trunk/share/www/browse/database.html [utf-8] Fri May 23 06:38:01 2008
@@ -111,7 +111,7 @@
       <div id="viewcode" style="display: none">
         <div class="top">
           <a id="designdoc-link"></a>
-          <span id="view-toggle">View Function</span>
+          <span id="view-toggle">View Code</span>
         </div>
         <div class="code map">
           <label>Map Function:</label>

Modified: incubator/couchdb/trunk/share/www/script/browse.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/script/browse.js?rev=659537&r1=659536&r2=659537&view=diff
==============================================================================
--- incubator/couchdb/trunk/share/www/script/browse.js [utf-8] (original)
+++ incubator/couchdb/trunk/share/www/script/browse.js [utf-8] Fri May 23 06:38:01 2008
@@ -154,7 +154,7 @@
             }
           }, 100);
         }
-        $("#viewcode_map").bind("input", updateDirtyState);
+        $("#viewcode textarea").bind("input", updateDirtyState);
         if ($.browser.msie) { // sorry, browser detection
           $("#viewcode textarea").get(0).onpropertychange = updateDirtyState
         } else if ($.browser.safari) {
@@ -279,7 +279,7 @@
         } else {
           var viewCode = {
             map: $("#viewcode_map").val(),
-            reduce: $("#viewcode_map").val() || undefined
+            reduce: $("#viewcode_reduce").val() || undefined
           };
           var docId = ["_design", data.docid].join("/");
           function save(doc) {



Mime
View raw message