summaryrefslogtreecommitdiff
path: root/share/www/script/futon.browse.js
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2009-12-10 16:03:43 +0000
committerChristopher Lenz <cmlenz@apache.org>2009-12-10 16:03:43 +0000
commit72de6c7633e56207b8ee4bf10f155ed06fc39ef4 (patch)
tree62f8332e97af3eac08fefe76d6fe27b23adcfd52 /share/www/script/futon.browse.js
parent5ad12f26e8288a0bc4ae061b9c2f0465d1ada95d (diff)
Futon: Fix toggling of reduce checkbox on database page.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@889307 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/futon.browse.js')
-rw-r--r--share/www/script/futon.browse.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js
index 0c85a909..76084d64 100644
--- a/share/www/script/futon.browse.js
+++ b/share/www/script/futon.browse.js
@@ -350,7 +350,7 @@
mapFun.split("\n").length,
reduceFun.split("\n").length
);
- $("#reduce").toggle(reduceFun != null);
+ $("#reduce").toggle(!!reduceFun);
$("#viewcode textarea").attr("rows", Math.min(15, Math.max(3, lines)));
}