Bug 11415 (QA Followup) fix whitespace
This patch also fixes a JavaScript syntax error if the
SelfCheckReceiptPrompt system preference is off.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 6254f5f07a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
e25da1fa43
commit
849f178cd8
|
|
@ -357,12 +357,12 @@
|
|||
|
||||
$("#logout_form").submit(function(){
|
||||
clearTimeout(mainTimeout);
|
||||
[% IF Koha.Preference('SelfCheckReceiptPrompt') %]
|
||||
if(confirm("Would you like to print a receipt?")){
|
||||
window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip");
|
||||
[% END %]
|
||||
[% IF Koha.Preference('SelfCheckReceiptPrompt') %]
|
||||
if(confirm("Would you like to print a receipt?")){
|
||||
window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip");
|
||||
}
|
||||
[% END %]
|
||||
|
||||
}
|
||||
return true;
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -91,11 +91,11 @@ $(document).ready(function() {
|
|||
}));
|
||||
$("#logout_form").submit(function(){
|
||||
clearTimeout(mainTimeout);
|
||||
[% IF Koha.Preference('SelfCheckReceiptPrompt') %]
|
||||
if(confirm("Would you like to print a receipt?")){
|
||||
window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip");
|
||||
[%END %]
|
||||
}
|
||||
[% IF Koha.Preference('SelfCheckReceiptPrompt') %]
|
||||
if( confirm("Would you like to print a receipt?") ) {
|
||||
window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip");
|
||||
}
|
||||
[% END %]
|
||||
return true;
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue