summaryrefslogtreecommitdiff
path: root/misc/teaser.js
diff options
context:
space:
mode:
Diffstat (limited to 'misc/teaser.js')
-rw-r--r--misc/teaser.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/teaser.js b/misc/teaser.js
index c7cdf5654..abb008bc7 100644
--- a/misc/teaser.js
+++ b/misc/teaser.js
@@ -7,13 +7,13 @@
* Note: depends on resizable textareas.
*/
Drupal.behaviors.teaser = {
- attach: function(context) {
+ attach: function(context, settings) {
$('textarea.teaser:not(.teaser-processed)', context).each(function() {
var teaser = $(this).addClass('teaser-processed');
// Move teaser textarea before body, and remove its form-item wrapper.
- var body = $('#'+ Drupal.settings.teaser[this.id]);
- var checkbox = $('#'+ Drupal.settings.teaserCheckbox[this.id]).parent();
+ var body = $('#'+ settings.teaser[this.id]);
+ var checkbox = $('#'+ settings.teaserCheckbox[this.id]).parent();
var checked = $(checkbox).children('input').attr('checked') ? true : false;
var parent = teaser[0].parentNode;
$(body).before(teaser);