From 8c39c295288d95f8209a74417da10751ce207f26 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 15 Aug 2012 20:22:25 +0100 Subject: [PATCH] make tag hiding a little more consistent --- ext/index/script.js | 11 +++-------- ext/index/theme.php | 3 ++- themes/danbooru/index.theme.php | 3 ++- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/ext/index/script.js b/ext/index/script.js index 6c3078c0..c220d53b 100644 --- a/ext/index/script.js +++ b/ext/index/script.js @@ -1,5 +1,5 @@ $(function() { - var blocked_tags = ($.cookie("ui-blocked-tags") || $.cookie("blocked-tags") || "").split(" "); + var blocked_tags = ($.cookie("ui-blocked-tags") || "").split(" "); var themecheck = $(".thumb[data-tags]").parent().attr('class'); var needs_refresh = false; for(i=0; ibuild_thumb_html($image, $query); } + $table .= ""; return $table; } } diff --git a/themes/danbooru/index.theme.php b/themes/danbooru/index.theme.php index eb8d424a..79e02e6a 100644 --- a/themes/danbooru/index.theme.php +++ b/themes/danbooru/index.theme.php @@ -49,10 +49,11 @@ class CustomIndexTheme extends IndexTheme { } protected function build_table($images, $query) { - $table = ""; + $table = "
"; foreach($images as $image) { $table .= "\t" . $this->build_thumb_html($image, $query) . "\n"; } + $table .= "
"; return $table; } }