fixed bug with number only tags breaking js

This commit is contained in:
albert
2011-10-26 18:39:18 -04:00
parent 5a52ccbbc9
commit 9f21630c33
8 changed files with 13 additions and 9 deletions

View File

@@ -78,12 +78,12 @@
}
Danbooru.Blacklist.posts = function() {
return $("article.post-preview");
return $(".post-preview");
}
Danbooru.Blacklist.post_match = function(post, blacklist) {
var $post = $(post);
var tags = $post.data("tags").match(/\S+/g) || [];
var tags = String($post.data("tags")).match(/\S+/g) || [];
tags.push("rating:" + $post.data("rating"));
tags.push("uploader:" + $post.data("uploader"));