From 7a3933c8352e5bda712ccb30eaaa089c693ce6bb Mon Sep 17 00:00:00 2001 From: Joe Atzberger Date: Tue, 15 Jan 2008 11:39:18 -0600 Subject: [PATCH] sco.js - trivial javascript cleanup, comment Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- koha-tmpl/opac-tmpl/prog/en/js/sco.js | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/js/sco.js b/koha-tmpl/opac-tmpl/prog/en/js/sco.js index 48ade88bbf..978ce2ab65 100644 --- a/koha-tmpl/opac-tmpl/prog/en/js/sco.js +++ b/koha-tmpl/opac-tmpl/prog/en/js/sco.js @@ -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'); - } +} -- 2.39.5