Bugzilla – Attachment 9151 Details for
Bug 7948
Printing transfer slip loses barcode field focus
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7948 - Printing transfer slip loses barcode field focus
Bug-7948---Printing-transfer-slip-loses-barcode-fi.patch (text/plain), 3.07 KB, created by
Kyle M Hall
on 2012-04-12 15:17:21 UTC
(
hide
)
Description:
Bug 7948 - Printing transfer slip loses barcode field focus
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2012-04-12 15:17:21 UTC
Size:
3.07 KB
patch
obsolete
>From 8b5c1aaeb1084e6190e4ab6afda3655ed39bf34c Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 12 Apr 2012 11:16:20 -0400 >Subject: [PATCH] Bug 7948 - Printing transfer slip loses barcode field focus > > * Refocus on barcode field after running Dopop() > * Cleaned up javascript, removed tabs >--- > .../intranet-tmpl/prog/en/modules/circ/returns.tt | 68 ++++++++++---------- > 1 files changed, 35 insertions(+), 33 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >index cebcb09..229cbe0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >@@ -5,40 +5,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> >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7948
:
9151
|
9516