make shm-thumb use consistent across themes, with data-tags and data-post-id

This commit is contained in:
Shish
2012-08-15 20:42:56 +01:00
parent 8c39c29528
commit 6394cd8100
7 changed files with 20 additions and 42 deletions

View File

@ -1,16 +1,10 @@
$(function() {
var blocked_tags = ($.cookie("ui-blocked-tags") || "").split(" ");
var themecheck = $(".thumb[data-tags]").parent().attr('class');
var needs_refresh = false;
for(i=0; i<blocked_tags.length; i++) {
var tag = blocked_tags[i];
if(tag) {
if(themecheck == "thumbblock") {
$(".thumb[data-tags~='"+tag+"']").parent().hide();
$(".thumb[data-tags~='"+tag+"']").parent().height(0); //required for lite theme
}else{
$(".thumb[data-tags~='"+tag+"']").hide();
}
$(".shm-thumb[data-tags~='"+tag+"']").hide();
needs_refresh = true;
}
}