From 9c9905d9a077830e371d91b57527984c3cee96e3 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Tue, 14 Sep 2004 20:01:00 +0000 Subject: #10648: Fix watchdog-related tablesort coloring bug in IE, add support for attributes to theme_table() and reduce specificy of watchdog coloring CSS rules. --- modules/watchdog.module | 17 +++++++++++------ modules/watchdog/watchdog.module | 17 +++++++++++------ 2 files changed, 22 insertions(+), 12 deletions(-) (limited to 'modules') diff --git a/modules/watchdog.module b/modules/watchdog.module index c37ff3b2b..9be7a45f7 100644 --- a/modules/watchdog.module +++ b/modules/watchdog.module @@ -95,12 +95,17 @@ function watchdog_overview($type = '') { $result = pager_query($sql, 50); while ($watchdog = db_fetch_object($result)) { - $rows[] = array( - array('data' => format_date($watchdog->timestamp, 'small'), 'class' => "watchdog-$watchdog->type"), - array('data' => truncate_utf8(strip_tags($watchdog->message), 64), 'class' => "watchdog-$watchdog->type"), - array('data' => format_name($watchdog), 'class' => "watchdog-$watchdog->type"), - array('data' => $watchdog->link, 'class' => "watchdog-$watchdog->type"), - array('data' => l(t('details'), "admin/logs/view/$watchdog->wid"), 'class' => "watchdog-$watchdog->type") + $rows[] = array('data' => + array( + // Cells + format_date($watchdog->timestamp, 'small'), + truncate_utf8(strip_tags($watchdog->message), 64), + format_name($watchdog), + $watchdog->link, + l(t('details'), "admin/logs/view/$watchdog->wid") + ), + // Attributes for tr + 'class' => "watchdog-$watchdog->type" ); } diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module index c37ff3b2b..9be7a45f7 100644 --- a/modules/watchdog/watchdog.module +++ b/modules/watchdog/watchdog.module @@ -95,12 +95,17 @@ function watchdog_overview($type = '') { $result = pager_query($sql, 50); while ($watchdog = db_fetch_object($result)) { - $rows[] = array( - array('data' => format_date($watchdog->timestamp, 'small'), 'class' => "watchdog-$watchdog->type"), - array('data' => truncate_utf8(strip_tags($watchdog->message), 64), 'class' => "watchdog-$watchdog->type"), - array('data' => format_name($watchdog), 'class' => "watchdog-$watchdog->type"), - array('data' => $watchdog->link, 'class' => "watchdog-$watchdog->type"), - array('data' => l(t('details'), "admin/logs/view/$watchdog->wid"), 'class' => "watchdog-$watchdog->type") + $rows[] = array('data' => + array( + // Cells + format_date($watchdog->timestamp, 'small'), + truncate_utf8(strip_tags($watchdog->message), 64), + format_name($watchdog), + $watchdog->link, + l(t('details'), "admin/logs/view/$watchdog->wid") + ), + // Attributes for tr + 'class' => "watchdog-$watchdog->type" ); } -- cgit v1.2.3