View | Details | Raw Unified | Return to bug 17981
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt (-1 / +1 lines)
Lines 578-584 Link Here
578
                page += '&content='+encodeURIComponent(content);
578
                page += '&content='+encodeURIComponent(content);
579
                page += '&data_preview='+encodeURIComponent(data_preview);
579
                page += '&data_preview='+encodeURIComponent(data_preview);
580
                page += '&is_html='+encodeURIComponent(is_html);
580
                page += '&is_html='+encodeURIComponent(is_html);
581
                $("#preview_template .modal-body").load(page + " div");
581
                $("#preview_template .modal-body").load(page);
582
                $('#preview_template').modal('show');
582
                $('#preview_template').modal('show');
583
                $("#preview_template_button").attr("href", "/cgi-bin/koha/svc/letters/convert?module="+module+"&code="+code+"&mtt="+mtt+"&lang="+lang);
583
                $("#preview_template_button").attr("href", "/cgi-bin/koha/svc/letters/convert?module="+module+"&code="+code+"&mtt="+mtt+"&lang="+lang);
584
            });
584
            });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/preview_letter.tt (-8 / +9 lines)
Lines 19-24 Link Here
19
                    [% END %]
19
                    [% END %]
20
                </div>
20
                </div>
21
            [% END %]
21
            [% END %]
22
23
            [% IF rendered_tt_message %]
24
                [% IF messages_are_similar %]
25
                    <div class="dialog message">The generated notices are exactly the same!</div>
26
                [% ELSE %]
27
                    <div class="dialog alert">The generated notices are different!</div>
28
                [% END %]
29
            [% END %]
30
22
            [% IF rendered_message %]
31
            [% IF rendered_message %]
23
                <fieldset class="brief">
32
                <fieldset class="brief">
24
                    <legend>Original version</legend>
33
                    <legend>Original version</legend>
Lines 44-55 Link Here
44
            [% END %]
53
            [% END %]
45
        </div>
54
        </div>
46
55
47
        [% IF rendered_tt_message %]
48
            [% IF messages_are_similar %]
49
                <div class="dialog message">The generated notices are exactly the same!</div>
50
            [% ELSE %]
51
                <div class="dialog alert">The generated notices are different!</div>
52
            [% END %]
53
        [% END %]
54
    </body>
56
    </body>
55
</html>
57
</html>
56
- 

Return to bug 17981