Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove jQuery based autoresize

(homegrown one is working fine)
  • Loading branch information...
commit 017ebcac0650253aee09a43845bfc4bc4435bc8f 1 parent e2c45e9
@mateu authored
View
7 files/jquery/autoresize_min.js
@@ -1,7 +0,0 @@
-/*
- * jQuery autoResize (textarea auto-resizer)
- * @copyright James Padolsey http://james.padolsey.com
- * @version 1.04
- */
-
-(function(a){a.fn.autoResize=function(j){var b=a.extend({onResize:function(){},animate:true,animateDuration:150,animateCallback:function(){},extraSpace:20,limit:1000},j);this.filter('textarea').each(function(){var c=a(this).css({resize:'none','overflow-y':'hidden'}),k=c.height(),f=(function(){var l=['height','width','lineHeight','textDecoration','letterSpacing'],h={};a.each(l,function(d,e){h[e]=c.css(e)});return c.clone().removeAttr('id').removeAttr('name').css({position:'absolute',top:0,left:-9999}).css(h).attr('tabIndex','-1').insertBefore(c)})(),i=null,g=function(){f.height(0).val(a(this).val()).scrollTop(10000);var d=Math.max(f.scrollTop(),k)+b.extraSpace,e=a(this).add(f);if(i===d){return}i=d;if(d>=b.limit){a(this).css('overflow-y','');return}b.onResize.call(this);b.animate&&c.css('display')==='block'?e.stop().animate({height:d},b.animateDuration,b.animateCallback):e.height(d)};c.unbind('.dynSiz').bind('keyup.dynSiz',g).bind('keydown.dynSiz',g).bind('change.dynSiz',g)});return this}})(jQuery);
View
1  lib/Mojito/Template/Role/Javascript.pm
@@ -26,7 +26,6 @@ sub _build_javascripts {
'javascript/style.js',
'javascript/publish.js',
'syntax_highlight/prettify.js',
- 'jquery/autoresize_min.js',
'jquery/jquery-ui.custom.min.js',
'SHJS/sh_main.min.js',
'SHJS/sh_perl.min.js',
Please sign in to comment.
Something went wrong with that request. Please try again.