From c50c4d1e89c6565e50b2905fa4ad48922e327864 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 27 Mar 2014 16:18:07 +0100 Subject: [PATCH] Bug 9016: (follow-up) Improve number of characters display when mtt=sms Signed-off-by: Jonathan Druart Signed-off-by: Marcel de Rooy Signed-off-by: Galen Charlton --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt index 2a1fe8f15a..eb0b8a22ca 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -56,7 +56,7 @@ $(document).ready(function() { var sms_limit = 160; $("#content_sms").on("keyup", function(){ var length = $(this).val().length; - $("#sms_counter").html(length + "/" + sms_limit); + $("#sms_counter").html(length + "/" + sms_limit + _(" characters")); if ( length > sms_limit ) { $("#sms_counter").css("color", "red"); } else { @@ -341,7 +341,10 @@ $(document).ready(function() {
  • - + + [% IF letter.message_transport_type == 'sms' %] + [% IF letter.content.length > 0 %][% letter.content.length %][% ELSE %]0[% END %]/160 characters + [% END %]
    -- 2.39.5