summaryrefslogtreecommitdiff
path: root/share/www/script/jquery.resizer.js
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2008-05-23 11:09:17 +0000
committerChristopher Lenz <cmlenz@apache.org>2008-05-23 11:09:17 +0000
commit0de41589080a9ebbd172e96a3d2130591c671898 (patch)
tree434d7f1c6d8fa7996d5095cf53b7225d1f3a0d9d /share/www/script/jquery.resizer.js
parent10c68254aac8647c7bcf2a3d8f9523658eb828f7 (diff)
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
Diffstat (limited to 'share/www/script/jquery.resizer.js')
-rw-r--r--share/www/script/jquery.resizer.js6
1 files changed, 4 insertions, 2 deletions
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 = $("<div></div>").appendTo(this.parentNode);