summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/www/database.html2
-rw-r--r--share/www/script/futon.browse.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/share/www/database.html b/share/www/database.html
index 3609cc7b..c44d83fc 100644
--- a/share/www/database.html
+++ b/share/www/database.html
@@ -95,7 +95,7 @@ specific language governing permissions and limitations under the License.
$(this).toggleClass("desc");
page.updateDocumentListing();
});
- $("#documents thead th.value #reduce :checkbox").click(function() {
+ $("#reduce :checkbox").click(function() {
page.updateDocumentListing();
if (this.checked) {
$.cookies.set(page.db.name + ".doreduce", "1");
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)));
}