X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=templates%2Futil_addressbook.php;h=ae52aa4db73ffde8395c2c073a33b63d3e64435b;hp=68a0645996809518d199bba960cda169cc532319;hb=12ba9472f717849de39ad2648d2613f23a048077;hpb=d4e46166df04792c6b939356ea5dfda8e47bba7b diff --git a/templates/util_addressbook.php b/templates/util_addressbook.php index 68a06459..ae52aa4d 100644 --- a/templates/util_addressbook.php +++ b/templates/util_addressbook.php @@ -4,7 +4,7 @@ * * Functions to make working with address books easier * - * @copyright © 1999-2009 The SquirrelMail Project Team + * @copyright 1999-2011 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -123,6 +123,16 @@ function insert_javascript() { } } + function CheckAll(ch) { + var chkObj = ""; + for (var i = 0; i < document.addressbook.elements.length; i++) { + chkObj = document.addressbook.elements[i]; + if (chkObj.type == "checkbox" && chkObj.name.substr(0,16) == "send_to_search[" + ch) { + chkObj.checked = !(chkObj.checked); + } + } + } + // -->