couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cml...@apache.org
Subject svn commit: r796888 - in /couchdb/trunk: THANKS share/www/script/futon.browse.js
Date Wed, 22 Jul 2009 21:41:42 GMT
Author: cmlenz
Date: Wed Jul 22 21:41:41 2009
New Revision: 796888

URL: http://svn.apache.org/viewvc?rev=796888&view=rev
Log:
Ignore whitespace in reduce code textarea in Futon. Closes COUCHDB-328.

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

Modified: couchdb/trunk/THANKS
URL: http://svn.apache.org/viewvc/couchdb/trunk/THANKS?rev=796888&r1=796887&r2=796888&view=diff
==============================================================================
--- couchdb/trunk/THANKS (original)
+++ couchdb/trunk/THANKS Wed Jul 22 21:41:41 2009
@@ -32,5 +32,6 @@
  * Robert Newson <robert.newson@gmail.com>
  * Bob Dionne <dionne@member.fsf.org>
  * Mark Hammond <mhammond@skippinet.com.au>
+ * Kevin Ilchmann Jørgensen <kijmail@gmail.com>
 
 For a list of authors see the `AUTHORS` file.

Modified: couchdb/trunk/share/www/script/futon.browse.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/futon.browse.js?rev=796888&r1=796887&r2=796888&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/futon.browse.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/futon.browse.js [utf-8] Wed Jul 22 21:41:41 2009
@@ -602,8 +602,8 @@
             $("#viewcode").show().removeClass("collapsed");
             var mapFun = $("#viewcode_map").val();
             $.cookies.set(db.name + ".map", mapFun);
-            var reduceFun = $("#viewcode_reduce").val() || null;
-            if (reduceFun != null) {
+            var reduceFun = $.trim($("#viewcode_reduce").val()) || null;
+            if (reduceFun) {
               $.cookies.set(db.name + ".reduce", reduceFun);
               options.group = true;
             } else {
@@ -618,7 +618,7 @@
           } else {
             $("#viewcode").show();
             var currentMapCode = $("#viewcode_map").val();
-            var currentReduceCode = $("#viewcode_reduce").val() || null;
+            var currentReduceCode = $.trim($("#viewcode_reduce").val()) || null;
             if (currentReduceCode) {
               options.group = true;
             }



Mime
View raw message