Bugzilla – Attachment 70075 Details for
Bug 15492
Stand alone self check-in tool
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15492 [QA Followup] - Reset SCI if idle for 30 seconds
Bug-15492-QA-Followup---Reset-SCI-if-idle-for-30-s.patch (text/plain), 2.43 KB, created by
Kyle M Hall (khall)
on 2017-12-21 17:59:57 UTC
(
hide
)
Description:
Bug 15492 [QA Followup] - Reset SCI if idle for 30 seconds
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2017-12-21 17:59:57 UTC
Size:
2.43 KB
patch
obsolete
>From b54e7e068c688ee5ef8effed10b9fc2ae3a23f07 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 21 Dec 2017 12:59:13 -0500 >Subject: [PATCH] Bug 15492 [QA Followup] - Reset SCI if idle for 30 seconds > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../opac-tmpl/bootstrap/en/modules/sci/sci-main.tt | 26 +++++++++++++++++++++- > 1 file changed, 25 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt >index c33d6f4..85718e3 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt >@@ -120,7 +120,7 @@ > </table> > <div> > <form method="post" action="#" id="finish_form"> >- <button type="submit" class="btn"><i class="icon finish"></i> Finish</button> >+ <button id="sci_finish_button" type="submit" class="btn"><i class="icon finish"></i> Finish</button> > </form> > </div> > [% ELSE %] >@@ -242,6 +242,30 @@ > // set focus at the beginning > dofocus(); > }); >+ >+ var idleTime = 0; >+ $(document).ready(function () { >+ //Increment the idle time counter every minute. >+ var idleInterval = setInterval(timerIncrement, 1000); // 1 second >+ >+ //Zero the idle timer on mouse movement. >+ $(this).mousemove(function (e) { >+ idleTime = 0; >+ }); >+ $(this).keypress(function (e) { >+ idleTime = 0; >+ }); >+ }); >+ >+ function timerIncrement() { >+ if ( $("#sci_finish_button").is(":visible") || $("#sci_refresh_button").is(":visible") ) { >+ idleTime = idleTime + 1; >+ if (idleTime >= 30 ) { // 30 seconds >+ if ( $("#sci_finish_button").is(":visible") ) $("#sci_finish_button").click(); >+ if ( $("#sci_refresh_button").is(":visible") ) $("#sci_refresh_button").click(); >+ } >+ } >+ } > </script> > > [% IF ( Koha.Preference('SCOUserJS') ) %]<script type="text/javascript">[% Koha.Preference('SCOUserJS') %]</script>[% END %] >-- >2.10.2
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 15492
:
69165
|
69166
|
69167
|
69168
|
69179
|
69664
|
69665
|
70073
|
70074
|
70075
|
70173
|
70174
|
70175
|
70176
|
70177
|
70178
|
70179
|
72053
|
72054
|
72055
|
72056
|
72057
|
72058
|
72059
|
72060
|
72176
|
72177
|
72178
|
72179
|
72180
|
72181
|
72182
|
72183
|
73097