diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-04-26 19:18:46 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-04-26 19:18:46 +0000 |
commit | bda52632a5aa033d44151c224a39236b223c6b0e (patch) | |
tree | da56b8095f58963707655312071d41de95adca84 /misc/teaser.js | |
parent | a4dc8467bbe69ba984be31309f536af74dc64e73 (diff) | |
download | brdo-bda52632a5aa033d44151c224a39236b223c6b0e.tar.gz brdo-bda52632a5aa033d44151c224a39236b223c6b0e.tar.bz2 |
#444402 by kkaefer and RobLoach: Enforce coding standards on all core JavaScript.
Diffstat (limited to 'misc/teaser.js')
-rw-r--r-- | misc/teaser.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/teaser.js b/misc/teaser.js index abb008bc7..d54605018 100644 --- a/misc/teaser.js +++ b/misc/teaser.js @@ -12,8 +12,8 @@ Drupal.behaviors.teaser = { var teaser = $(this).addClass('teaser-processed'); // Move teaser textarea before body, and remove its form-item wrapper. - var body = $('#'+ settings.teaser[this.id]); - var checkbox = $('#'+ 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); @@ -26,7 +26,7 @@ Drupal.behaviors.teaser = { // Join the teaser back to the body. function join_teaser() { if (teaser.val()) { - body.val(trim(teaser.val()) +'\r\n\r\n'+ trim(body.val())); + body.val(trim(teaser.val()) + '\r\n\r\n' + trim(body.val())); } // Empty, hide and disable teaser. teaser[0].value = ''; @@ -64,7 +64,7 @@ Drupal.behaviors.teaser = { // Add split/join button. var button = $('<div class="teaser-button-wrapper"><input type="button" class="teaser-button" /></div>'); - var include = $('#'+ this.id.substring(0, this.id.length - 2) +'include'); + var include = $('#' + this.id.substring(0, this.id.length - 2) + 'include'); $(include).parent().parent().before(button); // Extract the teaser from the body, if set. Otherwise, stay in joined mode. |