backoffice: fix PDF download URL when there's a query string (#7055)

This commit is contained in:
Frédéric Péters 2015-04-27 19:06:06 +02:00
parent 9b4e963c82
commit a8b3708e12
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ $(function() {
});
$('button.pdf').click(function() {
if (window.location.pathname.indexOf('?') == -1) {
if (window.location.href.indexOf('?') == -1) {
window.location = window.location + '?pdf=on';
} else {
window.location = window.location + '&pdf=on';