Bugzilla – Attachment 9516 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.18 KB, created by
Liz Rea
on 2012-05-11 14:35:17 UTC
(
hide
)
Description:
Bug 7948 - Printing transfer slip loses barcode field focus
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2012-05-11 14:35:17 UTC
Size:
3.18 KB
patch
obsolete
>From 700a0e7a6cda27c72d6964c83cfb81c687181a7c 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 >Content-Type: text/plain; charset="utf-8" > > * 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. >--- > .../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