Bugzilla – Attachment 70175 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 follow-up) Reset SCI if idle for 30 seconds
Bug-15492-QA-follow-up-Reset-SCI-if-idle-for-30-se.patch (text/plain), 2.49 KB, created by
Tomás Cohen Arazi (tcohen)
on 2017-12-27 16:09:00 UTC
(
hide
)
Description:
Bug 15492: (QA follow-up) Reset SCI if idle for 30 seconds
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2017-12-27 16:09:00 UTC
Size:
2.49 KB
patch
obsolete
>From 45eb650bd6d67c9304f522654b12e388dc514fe4 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 follow-up) Reset SCI if idle for 30 seconds > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > .../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 c33d6f4338..85718e3726 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.14.1
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