Bug 7948 - Printing transfer slip loses barcode field focus
* Refocus on barcode field after running Dopop() * Cleaned up javascript, removed tabs Signed-off-by: Liz Rea <wizzyrea@gmail.com> passes t xt works as advertised. Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
a98269296f
commit
e3b6ded65e
|
|
@ -4,40 +4,42 @@
|
|||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
function Dopop(link) {
|
||||
var newin=window.open(link,'popup','width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
|
||||
var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
|
||||
$("#barcode").focus();
|
||||
}
|
||||
$(document).ready(function() {
|
||||
$("#exemptcheck").change(function(){
|
||||
if(this.checked == true) {
|
||||
$("#barcode").addClass("alert");
|
||||
$("#exemptfines").show();
|
||||
} else {
|
||||
$("#barcode").removeClass("alert");
|
||||
$("#exemptfines").hide();
|
||||
}
|
||||
$("#barcode").focus();
|
||||
});
|
||||
$("#dropboxcheck").change(function(){
|
||||
if (this.checked == true) {
|
||||
$("#barcode").addClass("alert");
|
||||
$("#dropboxmode").show();
|
||||
} else {
|
||||
$("#barcode").removeClass("alert");
|
||||
$("#dropboxmode").hide();
|
||||
}
|
||||
$("#barcode").focus();
|
||||
});
|
||||
[% IF ( overduecharges ) %]$("#barcode").focus(function(){
|
||||
if(($("#exemptcheck").attr("checked") == true)||($("#dropboxcheck").attr("checked") == true)){
|
||||
$("#barcode").addClass("alert");
|
||||
} else {
|
||||
$("#barcode").removeClass("alert");
|
||||
}
|
||||
});
|
||||
$("#barcode").blur(function(){
|
||||
$("#barcode").removeClass("alert");
|
||||
});[% END %]
|
||||
});
|
||||
$(document).ready(function () {
|
||||
$("#exemptcheck").change(function () {
|
||||
if (this.checked == true) {
|
||||
$("#barcode").addClass("alert");
|
||||
$("#exemptfines").show();
|
||||
} else {
|
||||
$("#barcode").removeClass("alert");
|
||||
$("#exemptfines").hide();
|
||||
}
|
||||
$("#barcode").focus();
|
||||
});
|
||||
$("#dropboxcheck").change(function () {
|
||||
if (this.checked == true) {
|
||||
$("#barcode").addClass("alert");
|
||||
$("#dropboxmode").show();
|
||||
} else {
|
||||
$("#barcode").removeClass("alert");
|
||||
$("#dropboxmode").hide();
|
||||
}
|
||||
$("#barcode").focus();
|
||||
});
|
||||
[% IF(overduecharges) %] $("#barcode").focus(function () {
|
||||
if (($("#exemptcheck").attr("checked") == true) || ($("#dropboxcheck").attr("checked") == true)) {
|
||||
$("#barcode").addClass("alert");
|
||||
} else {
|
||||
$("#barcode").removeClass("alert");
|
||||
}
|
||||
});
|
||||
$("#barcode").blur(function () {
|
||||
$("#barcode").removeClass("alert");
|
||||
});
|
||||
[% END %]
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
</head>
|
||||
|
|
|
|||
Loading…
Reference in New Issue