From 25cb4562a68ebce6348382559c3d2e25e4d58686 Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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 --- 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 e9f33dd..4f072d9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -140,7 +140,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 4bde77d..b7aadd9 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 %] [% END %] + + [% IF rendered_tt_message %] + [% IF messages_are_similar %] +
The generated notices are exactly the same!
+ [% ELSE %] +
The generated notices are different!
+ [% END %] + [% END %] + [% IF rendered_message %]
Original version @@ -44,12 +53,5 @@ [% END %] - [% IF rendered_tt_message %] - [% IF messages_are_similar %] -
The generated notices are exactly the same!
- [% ELSE %] -
The generated notices are different!
- [% END %] - [% END %] -- 2.10.2