integrated into eval_console.js
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 29 Jun 2010 14:06:53 +0000 (16:06 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 29 Jun 2010 14:06:53 +0000 (16:06 +0200)
public/js/jquery.textarea_grow.js [deleted file]

diff --git a/public/js/jquery.textarea_grow.js b/public/js/jquery.textarea_grow.js
deleted file mode 100644 (file)
index a07ab75..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-jQuery.fn.textarea_grow = function(){
-       return this.each(function(){
-               var rows = this.rows;
-               console.debug( 'textarea_grow', rows, this );
-               var grow = function(ta) {
-               var lines = ta.value.split('\n').length;
-                       if ( lines != rows ) {
-                               ta.rows = lines;
-                               rows    = lines;
-                               console.debug('keyup', lines, rows, ta );
-                       }
-               };
-               grow(this);
-               this.onkeyup = function() { grow(this) };
-       });
-};
-