From a4893b4b1dfed1a73c07bce1c23b8ec3ec43d86f Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Fri, 17 Sep 2004 19:13:59 +0000 Subject: [PATCH] applied patch from Christian Mangold [ 1021108 ] minor bugfix in mainscreen.tpl --- felamimail/templates/default/mainscreen.tpl | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/felamimail/templates/default/mainscreen.tpl b/felamimail/templates/default/mainscreen.tpl index 41d79db89d..241b6ee17f 100644 --- a/felamimail/templates/default/mainscreen.tpl +++ b/felamimail/templates/default/mainscreen.tpl @@ -50,10 +50,17 @@ doLoad(); checkedCounter = 0; } //alert(document.forms["messageList"].elements['msg[]'][10].checked); - for (var i = 0; i < document.forms["messageList"].elements['msg[]'].length; i++) - { - document.forms["messageList"].elements['msg[]'][i].checked = value; - } + if (document.forms["messageList"].elements['msg[]'].constructor == '[NodeList]') + { + for (var i = 0; i < document.forms["messageList"].elements['msg[]'].length; i++) + { + document.forms["messageList"].elements['msg[]'][i].checked = value; + } + } + else + { + document.forms["messageList"].elements['msg[]'].checked = value; + } folderFunctions = document.getElementById('folderFunction'); if(inputBox.checked) {