From d966164346be92670ca0646c40650145bd156b2d 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 4eaa6d0594..e28a7f78b4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -580,7 +580,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(""); @@ -605,7 +605,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