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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt (-3 / +2 lines)
Lines 579-585 Link Here
579
                page += '&is_html='+encodeURIComponent(is_html);
579
                page += '&is_html='+encodeURIComponent(is_html);
580
                $("#preview_template .modal-body").load(page);
580
                $("#preview_template .modal-body").load(page);
581
                $('#preview_template').modal('show');
581
                $('#preview_template').modal('show');
582
                $("#preview_template_button").attr("href", "/cgi-bin/koha/svc/letters/convert?module="+module+"&code="+code+"&mtt="+mtt+"&lang="+lang);
582
                $("#preview_template_button").attr("href", "/cgi-bin/koha/svc/letters/convert?code="+code+"&mtt="+mtt+"&lang="+lang);
583
            });
583
            });
584
            $("#preview_template").on("hidden", function(){
584
            $("#preview_template").on("hidden", function(){
585
                $("#preview_template_label").html("");
585
                $("#preview_template_label").html("");
Lines 604-610 Link Here
604
                page += '&is_html='+encodeURIComponent(is_html);
604
                page += '&is_html='+encodeURIComponent(is_html);
605
                $("#preview_template .modal-body").load(page + " div");
605
                $("#preview_template .modal-body").load(page + " div");
606
                $('#preview_template').modal('show');
606
                $('#preview_template').modal('show');
607
                $("#preview_template_button").attr("href", "/cgi-bin/koha/svc/letters/convert?module="+module+"&code="+code+"&branchcode="+branchcode+"&mtt="+mtt+"&lang="+lang);
607
                $("#preview_template_button").attr("href", "/cgi-bin/koha/svc/letters/convert?code="+code+"&branchcode="+branchcode+"&mtt="+mtt+"&lang="+lang);
608
            });
608
            });
609
            $("#convert_template").on("hidden", function(){
609
            $("#convert_template").on("hidden", function(){
610
                $("#convert_template_label").html("");
610
                $("#convert_template_label").html("");
611
- 

Return to bug 17981