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.1.2.1
Date: Tue, 11 Jan 2005 14:47:27 -0800

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

Modified Files:
      Tag: rel_2_2
        script.js 
Log Message:
Adding checkall() and confirmdelete() functions for use in virtual shelves

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.1.2.1
diff -C2 -r1.1 -r1.1.2.1
*** script.js   20 Oct 2004 19:15:06 -0000      1.1
--- script.js   11 Jan 2005 22:47:17 -0000      1.1.2.1
***************
*** 39,40 ****
--- 39,62 ----
    }
  }
+ 
+ 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;
+       }
+ }
\ No newline at end of file




reply via email to

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