|
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 |
} |