sco.js - trivial javascript cleanup, comment
Signed-off-by: Chris Cormack <crc@liblime.com> Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
e7dec207fa
commit
7a3933c835
|
|
@ -1,28 +1,20 @@
|
|||
|
||||
function focusOnFirst(){
|
||||
|
||||
; // FIXME: do something here?
|
||||
}
|
||||
|
||||
function sco_init(valid_session) {
|
||||
if (valid_session == 1) {
|
||||
setTimeout("location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout';",120000);
|
||||
}
|
||||
|
||||
if(document.forms['mainform']){
|
||||
document.forms['mainform'].elements[0].focus();
|
||||
}
|
||||
if (valid_session == 1) {
|
||||
setTimeout("location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout';",120000);
|
||||
}
|
||||
if(document.forms['mainform']){
|
||||
document.forms['mainform'].elements[0].focus();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function confirmDelete(message) {
|
||||
var agree = confirm(message);
|
||||
if(agree) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return (confirm(message) ? true : false);
|
||||
}
|
||||
|
||||
function Dopop(link) {
|
||||
newin=window.open(link,'popup','width=500,height=400,toolbar=false,scrollbars=yes');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue