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/script/jquery.resizer.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'share/www/script/jquery.resizer.js') diff --git a/share/www/script/jquery.resizer.js b/share/www/script/jquery.resizer.js index 8ebd0c66..081c7177 100644 --- a/share/www/script/jquery.resizer.js +++ b/share/www/script/jquery.resizer.js @@ -13,13 +13,15 @@ (function($) { $.fn.resizable = function(options) { - if ($.browser.safari && parseInt($.browser.version) >= 522) - return this; // safari3 and later provides textarea resizing natively options = options || {}; + options.always = options.always || false; options.grippie = options.grippie || null; options.minHeight = options.minHeight || 32; options.maxHeight = options.maxHeight || null; + if (!options.always && $.browser.safari && parseInt($.browser.version) >= 522) + return this; // safari3 and later provides textarea resizing natively + return this.each(function() { var grippie = options.grippie; if (!grippie) grippie = $("
").appendTo(this.parentNode); -- cgit v1.2.3