diff options
Diffstat (limited to 'misc/textarea.js')
-rw-r--r-- | misc/textarea.js | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/misc/textarea.js b/misc/textarea.js index fed9db687..f2c9962d1 100644 --- a/misc/textarea.js +++ b/misc/textarea.js @@ -4,22 +4,11 @@ Drupal.behaviors.textarea = function(context) { $('textarea.resizable:not(.textarea-processed)', context).each(function() { var textarea = $(this).addClass('textarea-processed'), staticOffset = null; - // Make sure that teaser.js has done its magic before converting this textarea. - if (Drupal.behaviors.teaser && textarea.is(('.teaser:not(.teaser-processed)'))) { - Drupal.behaviors.teaser(this.parentNode); - } - // When wrapping the text area, work around an IE margin bug. See: // http://jaspan.com/ie-inherited-margin-bug-form-elements-and-haslayout $(this).wrap('<div class="resizable-textarea"><span></span></div>') .parent().append($('<div class="grippie"></div>').mousedown(startDrag)); - // Inherit visibility - if ($(this).is('[@disabled]')) { - $(this).parent().hide(); - $(this).show(); - } - var grippie = $('div.grippie', $(this).parent())[0]; grippie.style.marginRight = (grippie.offsetWidth - $(this)[0].offsetWidth) +'px'; |