From b9c4af0d497c6444fa3126397939f64aef5fa8d2 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 951e24a58d..46252d5eed 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -142,7 +142,7 @@ $(document).ready(function() { 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(""); @@ -167,7 +167,7 @@ $(document).ready(function() { 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