From 95e203e9d4b206857db76bf951898bb44cb63f0b Mon Sep 17 00:00:00 2001 From: jangliss Date: Fri, 15 Apr 2005 04:19:24 +0000 Subject: [PATCH] Javascript treats '0' different to 0. '0' is a string, and doesn't seem to match a boolean comparison. Or at least you get some odd results. I have fancy highlighting off, and '0' makes it appear. Also removed some odd javascript: this.checked = !(this.checked) on every message check box, what was this for? Firefox makes that a stupid bit of code, as you click on a check box, and it unchecks it immedately making it impossible to select messages :) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9282 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- templates/default/message_list.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/default/message_list.tpl b/templates/default/message_list.tpl index e6cf2882..6e948f5a 100644 --- a/templates/default/message_list.tpl +++ b/templates/default/message_list.tpl @@ -202,7 +202,7 @@ else switch ($iCol) { case SQM_COL_CHECK: if ($javascript_on) { - echo ''; + echo ''; } else { $link = $baseurl . "&startMessage=$pageOffset&&checkall="; if (sqgetGlobalVar('checkall',$checkall,SQ_GET)) { @@ -271,7 +271,7 @@ else $clickedColor = (!empty($color[16])) ? $color[16] : $color[2]; } if ($javascript_on) { - $checkbox_javascript = ' onClick="this.checked = !this.checked;"'; +// $checkbox_javascript = ' onClick="this.checked = !this.checked;"'; } foreach ($aMessages as $iUid => $aMsg) { echo $sLine; -- 2.25.1