koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] CVS: koha/koha-tmpl/opac-tmpl/npl/en/includes script.js,1.1,1


From: Owen Leonard
Subject: [Koha-cvs] CVS: koha/koha-tmpl/opac-tmpl/npl/en/includes script.js,1.1,1.2
Date: Tue, 25 Jan 2005 14:53:50 -0800

Update of /cvsroot/koha/koha/koha-tmpl/opac-tmpl/npl/en/includes
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25604/koha-tmpl/opac-tmpl/npl/en/includes

Modified Files:
        script.js 
Log Message:
Three new functions: CheckAll, which toggles checkboxes in results lists; 
confirmDelete, which offers a warning before proceding with an action; Dopop, 
for popping up virtual shelves window

Index: script.js
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/opac-tmpl/npl/en/includes/script.js,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** script.js   20 Oct 2004 19:15:06 -0000      1.1
--- script.js   25 Jan 2005 22:53:46 -0000      1.2
***************
*** 39,40 ****
--- 39,66 ----
    }
  }
+ 
+ function CheckAll()
+ {
+ count = document.mainform.elements.length;
+     for (i=0; i < count; i++) 
+       {
+           if(document.mainform.elements[i].checked == 1){
+                       document.mainform.elements[i].checked = 0;
+               } else {
+                       document.mainform.elements[i].checked = 1;
+               }
+       }
+ }
+ 
+ function confirmDelete(message) {
+       var agree = confirm(message);
+       if(agree) {
+               return true;
+       } else {
+               return false;
+       }
+ }
+ 
+ function Dopop(link) {
+       
newin=window.open(link,'popup','width=500,height=400,toolbar=false,scrollbars=yes');
+       }
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]