Bugzilla – Attachment 73951 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.64 KB, created by
Jonathan Druart
on 2018-04-10 15:17:52 UTC
(
hide
)
Description:
Bug 17981: Move the divs to the top of the modal
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-04-10 15:17:52 UTC
Size:
2.64 KB
patch
obsolete
>From 230f530b37b9150d0641efa8547ffeb96da01410 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 > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > 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 f2e3ef2739..4eaa6d0594 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >@@ -578,7 +578,7 @@ > 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