Bugzilla – Attachment 27808 Details for
Bug 9016
Multi transport types for notices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9016: Improve number of characters display when mtt=sms
Bug-9016-Improve-number-of-characters-display-when.patch (text/plain), 1.96 KB, created by
Jonathan Druart
on 2014-04-30 07:28:06 UTC
(
hide
)
Description:
Bug 9016: Improve number of characters display when mtt=sms
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-04-30 07:28:06 UTC
Size:
1.96 KB
patch
obsolete
>From 096a843e5710be8aa0b1cfc633080c4b2f0ba5b0 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 27 Mar 2014 16:18:07 +0100 >Subject: [PATCH] Bug 9016: Improve number of characters display when mtt=sms > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > 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 2a1fe8f..eb0b8a2 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() { > <label for="title">Message subject:</label><input type="text" id="title" name="title" size="60" value="[% letter.title %]" /> > </li> > <li> >- <label for="SQLfieldname">Message body: [% IF letter.message_transport_type == 'sms' %]<span id="sms_counter">[% letter.content.length %]/160</span>[% END %]</label> >+ <label for="SQLfieldname">Message body:</label> >+ [% IF letter.message_transport_type == 'sms' %] >+ <span id="sms_counter">[% IF letter.content.length > 0 %][% letter.content.length %][% ELSE %]0[% END %]/160 characters</span> >+ [% END %] > <table> > <tr> > <td> >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9016
:
13276
|
20814
|
20815
|
20816
|
20916
|
21164
|
21165
|
21166
|
21167
|
21636
|
21637
|
21638
|
21639
|
22814
|
23272
|
23273
|
23289
|
23290
|
23291
|
23292
|
23293
|
23562
|
23955
|
23956
|
23957
|
23958
|
23959
|
23960
|
24571
|
24572
|
24573
|
24574
|
24575
|
24576
|
25006
|
25123
|
25124
|
25125
|
25126
|
25127
|
25128
|
25129
|
25130
|
25415
|
25416
|
25417
|
25418
|
25419
|
25420
|
25421
|
25422
|
25606
|
25899
|
26182
|
26209
|
26210
|
26211
|
26216
|
26226
|
26233
|
26648
|
26649
|
26650
|
26656
|
26657
|
26658
|
26659
|
26660
|
26661
|
26662
|
26663
|
26664
|
26665
|
26666
|
26667
|
26668
|
26670
|
26672
|
26673
|
27794
|
27795
|
27796
|
27797
|
27798
|
27799
|
27800
|
27801
|
27802
|
27803
|
27804
|
27805
|
27806
|
27807
| 27808 |
27809