Bug 42296: (follow-up) Remove unused base_url on barcode-print
The JS variable base_url on barcode-print is never referenced. The remaining JS block did not contain TT interpolation, so data-tt-allowed can be removed. Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
667c8883e6
commit
0602877c31
|
|
@ -126,9 +126,7 @@
|
|||
|
||||
[% MACRO jsinclude BLOCK %]
|
||||
[% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
|
||||
<script nonce="[% Koha.CSPNonce | $raw %]" data-tt-allowed="true">
|
||||
var base_url = "[% Koha.Preference('staffClientBaseURL') | html %]";
|
||||
|
||||
<script nonce="[% Koha.CSPNonce | $raw %]">
|
||||
function showBarcodeText( path, dimensions ){
|
||||
var params = new URLSearchParams( path );
|
||||
var tag = '<img src="' + path + '" alt="' + params.get("barcode") + '" width="' + dimensions.width + '" height="' + dimensions.height + '" />';
|
||||
|
|
|
|||
Loading…
Reference in New Issue