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 580-586 Link Here
580
                page += '&is_html='+encodeURIComponent(is_html);
580
                page += '&is_html='+encodeURIComponent(is_html);
581
                $("#preview_template .modal-body").load(page);
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?code="+code+"&mtt="+mtt+"&lang="+lang);
584
            });
584
            });
585
            $("#preview_template").on("hidden", function(){
585
            $("#preview_template").on("hidden", function(){
586
                $("#preview_template_label").html("");
586
                $("#preview_template_label").html("");
Lines 605-611 Link Here
605
                page += '&is_html='+encodeURIComponent(is_html);
605
                page += '&is_html='+encodeURIComponent(is_html);
606
                $("#preview_template .modal-body").load(page + " div");
606
                $("#preview_template .modal-body").load(page + " div");
607
                $('#preview_template').modal('show');
607
                $('#preview_template').modal('show');
608
                $("#preview_template_button").attr("href", "/cgi-bin/koha/svc/letters/convert?module="+module+"&code="+code+"&branchcode="+branchcode+"&mtt="+mtt+"&lang="+lang);
608
                $("#preview_template_button").attr("href", "/cgi-bin/koha/svc/letters/convert?code="+code+"&branchcode="+branchcode+"&mtt="+mtt+"&lang="+lang);
609
            });
609
            });
610
            $("#convert_template").on("hidden", function(){
610
            $("#convert_template").on("hidden", function(){
611
                $("#convert_template_label").html("");
611
                $("#convert_template_label").html("");
612
- 

Return to bug 17981