From 565a5965f3b6da368eafb4b2a0a2b089fb9d6d12 Mon Sep 17 00:00:00 2001 From: oleonard Date: Wed, 27 Apr 2005 19:54:38 +0000 Subject: [PATCH] Adding 'checkall' function for columns of checkboxes --- .../intranet-tmpl/npl/en/includes/doc-head-close.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/npl/en/includes/doc-head-close.inc b/koha-tmpl/intranet-tmpl/npl/en/includes/doc-head-close.inc index 733309646b..bf0b6f7759 100644 --- a/koha-tmpl/intranet-tmpl/npl/en/includes/doc-head-close.inc +++ b/koha-tmpl/intranet-tmpl/npl/en/includes/doc-head-close.inc @@ -36,6 +36,17 @@ function openWindow(targeturl, windowname) { // Uncomment below to close popup after clicking link. newwin.close(); } + + 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; + } + } + } // end hiding --> -- 2.39.5