summaryrefslogtreecommitdiff
path: root/misc/teaser.js
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-06-08 12:51:59 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-06-08 12:51:59 +0000
commit57c9a13e1f0ed4e8492467bda817b3385be33225 (patch)
treecad6dffe20ee380f923a1a78b38248420393f332 /misc/teaser.js
parent9e0da3dc7c39786bf6d972e07819fe2880cdeaa3 (diff)
downloadbrdo-57c9a13e1f0ed4e8492467bda817b3385be33225.tar.gz
brdo-57c9a13e1f0ed4e8492467bda817b3385be33225.tar.bz2
#118026 by kkaefer with fixes from myself: JavaScript translation support and script.js as a default theme JS file to use, if found
Diffstat (limited to 'misc/teaser.js')
-rw-r--r--misc/teaser.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/teaser.js b/misc/teaser.js
index eeb847305..d515d1f71 100644
--- a/misc/teaser.js
+++ b/misc/teaser.js
@@ -29,7 +29,7 @@ Drupal.teaserAttach = function() {
$(teaser).attr('disabled', 'disabled');
$(teaser).parent().slideUp('fast');
// Change label
- $(this).val(Drupal.settings.teaserButton[1]);
+ $(this).val(Drupal.t('Split summary at cursor'));
// Show separate teaser checkbox
$(checkbox).hide();
}
@@ -48,7 +48,7 @@ Drupal.teaserAttach = function() {
$(teaser).attr('disabled', '');
$(teaser).parent().slideDown('fast');
// Change label
- $(this).val(Drupal.settings.teaserButton[0]);
+ $(this).val(Drupal.t('Join summary'));
// Show separate teaser checkbox
$(checkbox).show();
}
@@ -64,11 +64,11 @@ Drupal.teaserAttach = function() {
teaser[0].value = trim(text[0]);
body[0].value = trim(text[1]);
$(teaser).attr('disabled', '');
- $('input', button).val(Drupal.settings.teaserButton[0]).toggle(join_teaser, split_teaser);
+ $('input', button).val(Drupal.t('Join summary')).toggle(join_teaser, split_teaser);
}
else {
$(teaser).hide();
- $('input', button).val(Drupal.settings.teaserButton[1]).toggle(split_teaser, join_teaser);
+ $('input', button).val(Drupal.t('Split summary at cursor')).toggle(split_teaser, join_teaser);
$(checkbox).hide();
}