From b10155385b8d34081ad17c710b1bfd8c1d020b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Fri, 23 Nov 2007 11:45:37 +0000 Subject: [PATCH] #193921 by kkaefer: resizable textfields behavior should come after teaser splitter (cck breaker) --- misc/textarea.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/misc/textarea.js b/misc/textarea.js index 825f1d6d283..f85eacd2a1e 100644 --- a/misc/textarea.js +++ b/misc/textarea.js @@ -4,6 +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('
')