Permalink
Browse files

should work properly with lite theme now..

  • Loading branch information...
1 parent 3082266 commit d6de529ca54ee185cd9c9fe090eb01985ae2e830 @DakuTree DakuTree committed Mar 31, 2012
Showing with 11 additions and 4 deletions.
  1. +11 −4 ext/index/script.js
View
15 ext/index/script.js
@@ -5,9 +5,11 @@ $(function() {
for(i=0; i<blocked_tags.length; i++) {
var tag = blocked_tags[i];
if(tag) {
- $(".thumb[data-tags~='"+tag+"']").hide();
if(themecheck == "thumbblock") {
- $(".thumb[data-tags~='tagme']").parent().height(0); //required for lite theme
+ $(".thumb[data-tags~='"+tag+"']").parent().hide();
+ $(".thumb[data-tags~='"+tag+"']").parent().height(0); //required for lite theme
+ }else{
+ $(".thumb[data-tags~='"+tag+"']").hide();
}
needs_refresh = true;
}
@@ -16,8 +18,13 @@ $(function() {
// text-align: justify with element margins and doesn't recalculate
// these margins when part of the line disappears...
if(needs_refresh) {
- $('#image-list').hide();
- $('#image-list').show();
+ if(themecheck == "thumbblock") {
+ $('.blockbody').hide();
+ $('.blockbody').show();
+ }else{
+ $('#image-list').hide();
+ $('#image-list').show();
+ }
}
});

0 comments on commit d6de529

Please sign in to comment.