From 8ccc4986ac129902eed35076f091f9a9ebc37883 Mon Sep 17 00:00:00 2001 From: Latif Khalifa Date: Sun, 13 Oct 2013 11:00:43 +0200 Subject: [PATCH] Couple of visual tweaks --- htdocs/crashes.php | 4 ++-- htdocs/statistics.php | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/htdocs/crashes.php b/htdocs/crashes.php index 3b23f49..90e7e14 100644 --- a/htdocs/crashes.php +++ b/htdocs/crashes.php @@ -71,9 +71,9 @@ $filter->render(); x -= dwidth + 40; } - var y = e.pageY + $(document).scrollTop(); + var y = e.pageY - $(document).scrollTop(); var dheight = $dialog.height(); - if (dheight < 40) dheight = 40; + if (dheight < 70) dheight = 70; //console.debug("y=" + y + "; wheight=" + $(window).height() + ": dheight=" + dheight); if (y < $(window).height() - dheight - 40) { diff --git a/htdocs/statistics.php b/htdocs/statistics.php index fa94800..3c92018 100644 --- a/htdocs/statistics.php +++ b/htdocs/statistics.php @@ -48,9 +48,10 @@ $filter->render(); foreach($sigs as $r): $parts = explode("|", $r->signature_text); $txt = ""; - if ($parts[1]) $txt .= preg_replace("/((<|>|,|\\(|\\)))/", " \\1 ", htmlentities($parts[1])); + if ($parts[1]) $txt .= preg_replace("/((::|<|>|,|\\(|\\)))/", "\\1", htmlentities($parts[1])); if ($txt) $txt .= "

"; - if ($parts[2]) $txt .= preg_replace("/((<|>|,|\\(|\\)))/", " \\1 ", htmlentities($parts[2])); + if ($parts[2]) $txt .= preg_replace("/((::|<|>|,|\\(|\\)))/", "\\1", htmlentities($parts[2])); + if (!$txt) $txt = " "; ?> nr) ?>