|
Lines 120-126
Link Here
|
| 120 |
</table> |
120 |
</table> |
| 121 |
<div> |
121 |
<div> |
| 122 |
<form method="post" action="#" id="finish_form"> |
122 |
<form method="post" action="#" id="finish_form"> |
| 123 |
<button type="submit" class="btn"><i class="icon finish"></i> Finish</button> |
123 |
<button id="sci_finish_button" type="submit" class="btn"><i class="icon finish"></i> Finish</button> |
| 124 |
</form> |
124 |
</form> |
| 125 |
</div> |
125 |
</div> |
| 126 |
[% ELSE %] |
126 |
[% ELSE %] |
|
Lines 242-247
Link Here
|
| 242 |
// set focus at the beginning |
242 |
// set focus at the beginning |
| 243 |
dofocus(); |
243 |
dofocus(); |
| 244 |
}); |
244 |
}); |
|
|
245 |
|
| 246 |
var idleTime = 0; |
| 247 |
$(document).ready(function () { |
| 248 |
//Increment the idle time counter every minute. |
| 249 |
var idleInterval = setInterval(timerIncrement, 1000); // 1 second |
| 250 |
|
| 251 |
//Zero the idle timer on mouse movement. |
| 252 |
$(this).mousemove(function (e) { |
| 253 |
idleTime = 0; |
| 254 |
}); |
| 255 |
$(this).keypress(function (e) { |
| 256 |
idleTime = 0; |
| 257 |
}); |
| 258 |
}); |
| 259 |
|
| 260 |
function timerIncrement() { |
| 261 |
if ( $("#sci_finish_button").is(":visible") || $("#sci_refresh_button").is(":visible") ) { |
| 262 |
idleTime = idleTime + 1; |
| 263 |
if (idleTime >= 30 ) { // 30 seconds |
| 264 |
if ( $("#sci_finish_button").is(":visible") ) $("#sci_finish_button").click(); |
| 265 |
if ( $("#sci_refresh_button").is(":visible") ) $("#sci_refresh_button").click(); |
| 266 |
} |
| 267 |
} |
| 268 |
} |
| 245 |
</script> |
269 |
</script> |
| 246 |
|
270 |
|
| 247 |
[% IF ( Koha.Preference('SCOUserJS') ) %]<script type="text/javascript">[% Koha.Preference('SCOUserJS') %]</script>[% END %] |
271 |
[% IF ( Koha.Preference('SCOUserJS') ) %]<script type="text/javascript">[% Koha.Preference('SCOUserJS') %]</script>[% END %] |
| 248 |
- |
|
|