From 0de41589080a9ebbd172e96a3d2130591c671898 Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Fri, 23 May 2008 11:09:17 +0000 Subject: Initial set of changes to Futon to support the recent introduction map/reduce. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@659501 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/browse/database.html | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'share/www/browse') diff --git a/share/www/browse/database.html b/share/www/browse/database.html index 76990608..51cc19f4 100644 --- a/share/www/browse/database.html +++ b/share/www/browse/database.html @@ -36,7 +36,7 @@ specific language governing permissions and limitations under the License. $(document).ready(function() { $("h1 strong").text(page.db.name); - $("#viewcode label").click(function() { + $("#viewcode span").click(function() { $("#viewcode").toggleClass("expanded"); }); $("#viewcode button.run").click(function() { @@ -51,11 +51,14 @@ specific language governing permissions and limitations under the License. $("#viewcode button.saveas").click(function() { page.saveViewAs(); }); - $("#viewcode textarea").resizable({grippie: $("#viewcode .bottom")}); + $("#viewcode textarea").resizable({ + always: true, + grippie: $("#viewcode .bottom") + }); // Restore preferences/state from cookies var query = $.cookies.get(page.db.name + ".query"); - if (query) $("#viewcode textarea").val(query); + if (query) $("#viewcode_map").val(query); var desc = $.cookies.get(page.db.name + ".desc"); if (desc) $("#documents thead th.key").addClass("desc"); var rowsPerPage = $.cookies.get(page.db.name + ".perpage"); @@ -108,11 +111,18 @@ specific language governing permissions and limitations under the License. +
+ + +
-- cgit v1.2.3