Bug 17981: Remove uneeded module JS var
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 15 Sep 2017 15:50:32 +0000 (12:50 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 12 Apr 2018 13:51:50 +0000 (10:51 -0300)
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.

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt

index 4eaa6d0..e28a7f7 100644 (file)
                 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("");
                 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("");