Bugzilla – Attachment 63982 Details for
Bug 17981
Add the ability to preview generated notice templates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17981: Move the divs to the top of the modal
Bug-17981-Move-the-divs-to-the-top-of-the-modal.patch (text/plain), 2.56 KB, created by
Jonathan Druart
on 2017-06-05 17:06:21 UTC
(
hide
)
Description:
Bug 17981: Move the divs to the top of the modal
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-06-05 17:06:21 UTC
Size:
2.56 KB
patch
obsolete
>From 7d82c2ce1d0eb9ea00167d040f9ecc9b2199b5b6 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 24 Jan 2017 17:38:17 +0100 >Subject: [PATCH] Bug 17981: Move the divs to the top of the modal > >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt | 2 +- > .../prog/en/modules/tools/preview_letter.tt | 16 +++++++++------- > 2 files changed, 10 insertions(+), 8 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 a7d1be6c65..86e3097c8b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >@@ -130,7 +130,7 @@ $(document).ready(function() { > page += '&content='+encodeURIComponent(content); > page += '&data_preview='+encodeURIComponent(data_preview); > page += '&is_html='+encodeURIComponent(is_html); >- $("#preview_template .modal-body").load(page + " div"); >+ $("#preview_template .modal-body").load(page); > $('#preview_template').modal('show'); > $("#preview_template_button").attr("href", "/cgi-bin/koha/svc/letters/convert?module="+module+"&code="+code+"&mtt="+mtt+"&lang="+lang); > }); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/preview_letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/preview_letter.tt >index 4bde77d68d..b7aadd9ed1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/preview_letter.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/preview_letter.tt >@@ -19,6 +19,15 @@ > [% END %] > </div> > [% END %] >+ >+ [% IF rendered_tt_message %] >+ [% IF messages_are_similar %] >+ <div class="dialog message">The generated notices are exactly the same!</div> >+ [% ELSE %] >+ <div class="dialog alert">The generated notices are different!</div> >+ [% END %] >+ [% END %] >+ > [% IF rendered_message %] > <fieldset class="brief"> > <legend>Original version</legend> >@@ -44,12 +53,5 @@ > [% END %] > </div> > >- [% IF rendered_tt_message %] >- [% IF messages_are_similar %] >- <div class="dialog message">The generated notices are exactly the same!</div> >- [% ELSE %] >- <div class="dialog alert">The generated notices are different!</div> >- [% END %] >- [% END %] > </body> > </html> >-- >2.11.0
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 17981
:
59508
|
59509
|
59510
|
59514
|
59524
|
63978
|
63979
|
63980
|
63981
|
63982
|
65688
|
65689
|
65690
|
65701
|
65702
|
65703
|
65704
|
65705
|
67144
|
67145
|
67146
|
67147
|
67148
|
67152
|
70300
|
70301
|
70302
|
70303
|
70304
|
70305
|
73201
|
73202
|
73203
|
73204
|
73205
|
73206
|
73949
|
73950
|
73951
|
73952
|
74025
|
74027
|
74028
|
74029
|
74030
|
74031
|
74032
|
74033
|
74034