From efd28ccaa331fc983749dd6322fb4f4303c2e3b7 Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Mon, 2 Jun 2008 21:57:35 +0000 Subject: * The map/reduce function textareas in Futon are now horizontally resizable split-pane style * The initial height of the view code textareas is adjusted to the number of lines in the map/reduce functions. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@662587 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/browse/database.html | 33 +++++++++++++++++++++------------ share/www/script/browse.js | 12 ++++++++---- share/www/script/jquery.resizer.js | 38 +++++++++++++++++++++++++++----------- share/www/style/layout.css | 35 +++++++++++++++++++++-------------- 4 files changed, 77 insertions(+), 41 deletions(-) (limited to 'share/www') diff --git a/share/www/browse/database.html b/share/www/browse/database.html index 120c47c6..3405dbb4 100644 --- a/share/www/browse/database.html +++ b/share/www/browse/database.html @@ -37,7 +37,7 @@ specific language governing permissions and limitations under the License. $(document).ready(function() { $("h1 strong").text(page.db.name); $("#viewcode span").click(function() { - $("#viewcode").toggleClass("expanded"); + $("#viewcode").toggleClass("collapsed"); }); $("#viewcode button.run").click(function() { page.updateDocumentListing(); @@ -51,9 +51,15 @@ specific language governing permissions and limitations under the License. $("#viewcode button.saveas").click(function() { page.saveViewAs(); }); - $("#viewcode textarea").resizable({ + $("#viewcode textarea").makeResizable({ always: true, - grippie: $("#viewcode .bottom") + grippie: $("#viewcode .bottom"), + vertical: true + }); + $("#viewcode td.map").makeResizable({ + always: true, + grippie: $("#viewcode td.splitter"), + horizontal: true }); // Restore preferences/state from cookies @@ -108,21 +114,24 @@ specific language governing permissions and limitations under the License.
  • -