Skip to content
This repository
Browse code

should work properly with lite theme now..

  • Loading branch information...
commit d6de529ca54ee185cd9c9fe090eb01985ae2e830 1 parent 3082266
Daku DakuTree authored

Showing 1 changed file with 11 additions and 4 deletions. Show diff stats Hide diff stats

  1. +11 4 ext/index/script.js
15 ext/index/script.js
@@ -5,9 +5,11 @@ $(function() {
5 5 for(i=0; i<blocked_tags.length; i++) {
6 6 var tag = blocked_tags[i];
7 7 if(tag) {
8   - $(".thumb[data-tags~='"+tag+"']").hide();
9 8 if(themecheck == "thumbblock") {
10   - $(".thumb[data-tags~='tagme']").parent().height(0); //required for lite theme
  9 + $(".thumb[data-tags~='"+tag+"']").parent().hide();
  10 + $(".thumb[data-tags~='"+tag+"']").parent().height(0); //required for lite theme
  11 + }else{
  12 + $(".thumb[data-tags~='"+tag+"']").hide();
11 13 }
12 14 needs_refresh = true;
13 15 }
@@ -16,8 +18,13 @@ $(function() {
16 18 // text-align: justify with element margins and doesn't recalculate
17 19 // these margins when part of the line disappears...
18 20 if(needs_refresh) {
19   - $('#image-list').hide();
20   - $('#image-list').show();
  21 + if(themecheck == "thumbblock") {
  22 + $('.blockbody').hide();
  23 + $('.blockbody').show();
  24 + }else{
  25 + $('#image-list').hide();
  26 + $('#image-list').show();
  27 + }
21 28 }
22 29 });
23 30

0 comments on commit d6de529

Please sign in to comment.
Something went wrong with that request. Please try again.