X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=templates%2Futil_addressbook.php;h=8b582c0993876ebb23d6c7a09ae5302c56624609;hp=68a0645996809518d199bba960cda169cc532319;hb=afd9370f606cc6d89887910245ad490446164723;hpb=d4e46166df04792c6b939356ea5dfda8e47bba7b diff --git a/templates/util_addressbook.php b/templates/util_addressbook.php index 68a06459..8b582c09 100644 --- a/templates/util_addressbook.php +++ b/templates/util_addressbook.php @@ -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); + } + } + } + // -->