From d50abff253543cf6bffbd897c8f17c3424566365 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Thu, 17 Jan 2008 19:31:56 +0000 Subject: #209720 by theborg: avoid processing resizable teasers before teaser.js is run and the proper wrappers are in place --- misc/textarea.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'misc') diff --git a/misc/textarea.js b/misc/textarea.js index f2c9962d1..2e645829d 100644 --- a/misc/textarea.js +++ b/misc/textarea.js @@ -2,6 +2,10 @@ Drupal.behaviors.textarea = function(context) { $('textarea.resizable:not(.textarea-processed)', context).each(function() { + // Avoid non-processed teasers. + if ($(this).is(('textarea.teaser:not(.teaser-processed)'))) { + return false; + } var textarea = $(this).addClass('textarea-processed'), staticOffset = null; // When wrapping the text area, work around an IE margin bug. See: -- cgit v1.2.3