Bug 33568: Fix popup behaviour for SpineLabelShowPrintOnBibDetails

Signed-off-by: Laurence Rault <laurence.rault@biblibre.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2023-10-30 17:07:39 +01:00 committed by Katrin Fischer
parent 57997263b2
commit 32331a1f5a
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834
2 changed files with 8 additions and 5 deletions

View file

@ -802,6 +802,14 @@
container.find(".bottom.pager").remove();
}
[% IF ( SpineLabelShowPrintOnBibDetails ) %]
$(".print-label").on("click", function(e){
e.preventDefault();
link = $(this).attr("href");
openWindow(link,"Print spine label",400,400);
});
[% END %]
if ( drawcallback ) { drawcallback(this); }
},
[% END %]

View file

@ -1345,11 +1345,6 @@
}
});
[% END %]
$(".print-label").on("click", function(e){
e.preventDefault();
link = $(this).attr("href");
openWindow(link,"Print spine label",400,400);
});
$(".cover-slider").on("click",".cover-nav", function(e){
e.preventDefault();
var cover_slider = $(this).parent();