[Koha-cvs] koha/koha-tmpl/opac-tmpl/prog/en includes/baske... [rel_3_0]

paul poulain paul at koha-fr.org
Wed Jan 31 16:58:20 CET 2007


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_3_0
Changes by:	paul poulain <tipaul>	07/01/31 15:58:20

Modified files:
	koha-tmpl/opac-tmpl/prog/en/includes: basket.js 
	koha-tmpl/opac-tmpl/prog/en: opac-results.tmpl 

Log message:
	adding button & javascript to select/deselect a complete result list in 1 clic

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/opac-tmpl/prog/en/includes/basket.js?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1.2.5&r2=1.1.2.6
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/opac-tmpl/prog/en/opac-results.tmpl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1.2.14&r2=1.1.2.15

Patches:
Index: includes/basket.js
===================================================================
RCS file: /sources/koha/koha/koha-tmpl/opac-tmpl/prog/en/includes/basket.js,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -b -r1.1.2.5 -r1.1.2.6
--- includes/basket.js	30 Jan 2007 14:14:45 -0000	1.1.2.5
+++ includes/basket.js	31 Jan 2007 15:58:20 -0000	1.1.2.6
@@ -132,6 +132,17 @@
     }
 }
 
+function SelectAll(){
+    if(document.bookbag_form.biblionumber.length > 0) {
+        for (var i=0; i < document.bookbag_form.biblionumber.length; i++) {
+            if (document.bookbag_form.select_all.checked) {
+                document.bookbag_form.biblionumber[i].checked=true;
+            } else {
+                document.bookbag_form.biblionumber[i].checked=false;
+            }
+        }
+    }
+}
 
 function addMultiple(){
     var c_value = "";

Index: opac-results.tmpl
===================================================================
RCS file: /sources/koha/koha/koha-tmpl/opac-tmpl/prog/en/Attic/opac-results.tmpl,v
retrieving revision 1.1.2.14
retrieving revision 1.1.2.15
diff -u -b -r1.1.2.14 -r1.1.2.15
--- opac-results.tmpl	31 Jan 2007 15:35:23 -0000	1.1.2.14
+++ opac-results.tmpl	31 Jan 2007 15:58:20 -0000	1.1.2.15
@@ -169,7 +169,7 @@
         <!-- /TMPL_IF -->
         <table>
             <tr>
-                <th>&nbsp;</th>
+                <th><input type="checkbox" name="select_all" onClick="SelectAll()" /></th>
                 <th>Title</th>
                 <th>Location</th>
                 <!-- TMPL_IF NAME="RequestOnOpac" -->





More information about the Koha-cvs mailing list