From cad847afc984345b1bf5a1c3b60b72e5e1228c93 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 15 Sep 2017 12:50:32 -0300 Subject: [PATCH] Bug 17981: Remove uneeded module JS var As we only support CHECKIN and CHECKOUT for now, we do not need this module variable. It may be useful to re-add it later. --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 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 52d0a7eaaf..76dcfe9e1b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -574,7 +574,7 @@ page += '&is_html='+encodeURIComponent(is_html); $("#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); + $("#preview_template_button").attr("href", "/cgi-bin/koha/svc/letters/convert?code="+code+"&mtt="+mtt+"&lang="+lang); }); $("#preview_template").on("hidden", function(){ $("#preview_template_label").html(""); @@ -599,7 +599,7 @@ page += '&is_html='+encodeURIComponent(is_html); $("#preview_template .modal-body").load(page + " div"); $('#preview_template').modal('show'); - $("#preview_template_button").attr("href", "/cgi-bin/koha/svc/letters/convert?module="+module+"&code="+code+"&branchcode="+branchcode+"&mtt="+mtt+"&lang="+lang); + $("#preview_template_button").attr("href", "/cgi-bin/koha/svc/letters/convert?code="+code+"&branchcode="+branchcode+"&mtt="+mtt+"&lang="+lang); }); $("#convert_template").on("hidden", function(){ $("#convert_template_label").html(""); -- 2.11.0