From ac85807341b9090368bd27a890ef4d7949e69549 Mon Sep 17 00:00:00 2001 From: stekkel Date: Sat, 11 Feb 2006 18:17:59 +0000 Subject: [PATCH] Fix for checkall link when js is disabled. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10711 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- templates/default/message_list.tpl | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/templates/default/message_list.tpl b/templates/default/message_list.tpl index 2d862e0e..748329c2 100644 --- a/templates/default/message_list.tpl +++ b/templates/default/message_list.tpl @@ -93,7 +93,7 @@ if ($bIcons) { // //$clickedColor = ''; $clickedColor = (empty($color[16])) ? $color[2] : $color[16]; - + ?>
@@ -216,7 +216,7 @@ $clickedColor = (empty($color[16])) ? $color[2] : $color[16]; @@ -232,7 +232,7 @@ $clickedColor = (empty($color[16])) ? $color[2] : $color[16]; if ($javascript_on) { echo ''."\n"; } else { - $link = $baseurl . "&startMessage=$pageOffset&&checkall="; + $link = $baseurl . "&startMessage=$pageOffset&checkall="; if (sqgetGlobalVar('checkall',$checkall,SQ_GET)) { $link .= ($checkall) ? '0' : '1'; } else { @@ -481,9 +481,15 @@ if ($class != 'even' && $class != 'odd') switch ($iCol) { case SQM_COL_CHECK: - echo '' ?> - " id="" value="" /> + if ($javascript_on) { + echo '' ?> + " id="" value="" /> '; + $checked = ($checkall) ? " checked=checked " : " "; + echo ""; + } break; case SQM_COL_SUBJ: $indent = $aCol['indent']; -- 2.25.1