From: stekkel Date: Sat, 11 Feb 2006 18:17:59 +0000 (+0000) Subject: Fix for checkall link when js is disabled. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ac85807341b9090368bd27a890ef4d7949e69549;p=squirrelmail.git 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 --- 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'];