implemented blacklists

This commit is contained in:
albert
2011-08-07 15:44:54 -04:00
parent cbf3347eff
commit c6888984db
10 changed files with 174 additions and 13 deletions

View File

@@ -18,4 +18,16 @@
Danbooru.ajax_stop = function(target) {
$(target).next("img.wait").remove();
}
Danbooru.is_subset = function(array, subarray) {
var all = true;
$.each(subarray, function(i, val) {
if ($.inArray(val, array) === -1) {
all = false;
}
});
return all;
}
})();