diff options
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. |