From 57c9a13e1f0ed4e8492467bda817b3385be33225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Fri, 8 Jun 2007 12:51:59 +0000 Subject: #118026 by kkaefer with fixes from myself: JavaScript translation support and script.js as a default theme JS file to use, if found --- misc/teaser.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'misc/teaser.js') 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(); } -- cgit v1.2.3