sco.js - trivial javascript cleanup, comment
authorJoe Atzberger <joe.atzberger@liblime.com>
Tue, 15 Jan 2008 17:39:18 +0000 (11:39 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 15 Jan 2008 21:33:12 +0000 (15:33 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
koha-tmpl/opac-tmpl/prog/en/js/sco.js

index 48ade88..978ce2a 100644 (file)
@@ -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');
-       }
+}