View | Details | Raw Unified | Return to bug 15492
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt (-5 / +4 lines)
Lines 168-174 Link Here
168
            </div> <!-- / .row-fluid -->
168
            </div> <!-- / .row-fluid -->
169
        </div> <!-- / .container-fluid -->
169
        </div> <!-- / .container-fluid -->
170
170
171
        [% IF ( Koha.Preference('SelfCheckInMainUserBlock' ) ) %]
171
        [% IF ( Koha.Preference('SelfCheckInMainUserBlock') ) %]
172
            <div id="SelfCheckInMainUserBlock">[% Koha.Preference('SelfCheckInMainUserBlock' ) %]</div>
172
            <div id="SelfCheckInMainUserBlock">[% Koha.Preference('SelfCheckInMainUserBlock' ) %]</div>
173
        [% END %]
173
        [% END %]
174
    </div> <!-- / .main -->
174
    </div> <!-- / .main -->
Lines 245-252 Link Here
245
245
246
        var idleTime = 0;
246
        var idleTime = 0;
247
        $(document).ready(function () {
247
        $(document).ready(function () {
248
            //Increment the idle time counter every minute.
248
            //Increment the idle time counter every second
249
            var idleInterval = setInterval(timerIncrement, 1000); // 1 second
249
            var idleInterval = setInterval(timerIncrement, 1000);
250
250
251
            //Zero the idle timer on mouse movement.
251
            //Zero the idle timer on mouse movement.
252
            $(this).mousemove(function (e) {
252
            $(this).mousemove(function (e) {
Lines 262-269 Link Here
262
                idleTime = idleTime + 1;
262
                idleTime = idleTime + 1;
263
                idleTimeout = [% refresh_timeout %];
263
                idleTimeout = [% refresh_timeout %];
264
                if (idleTime >= idleTimeout ) {
264
                if (idleTime >= idleTimeout ) {
265
                    if ( $("#sci_finish_button").is(":visible") ) $("#sci_finish_button").click();
265
                    location.href = '/cgi-bin/koha/sci/sci-main.pl';
266
                    if ( $("#sci_refresh_button").is(":visible") ) $("#sci_refresh_button").click();
267
                }
266
                }
268
            }
267
            }
269
        }
268
        }
(-)a/opac/sci/sci-main.pl (-2 / +1 lines)
Lines 93-99 if ( $op eq 'check_in' ) { Link Here
93
    $template->param( success => \@success, errors => \@errors, checkins => 1 );
93
    $template->param( success => \@success, errors => \@errors, checkins => 1 );
94
}
94
}
95
95
96
# Make sure timeour has a reasonable value
96
# Make sure timeout has a reasonable value
97
my $timeout = C4::Context->preference('SelfCheckInTimeout') // 120;
97
my $timeout = C4::Context->preference('SelfCheckInTimeout') // 120;
98
$template->param( refresh_timeout => $timeout );
98
$template->param( refresh_timeout => $timeout );
99
99
100
- 

Return to bug 15492