From 84eed69d039da87591a55a5e7960c31b558edd44 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Fri, 14 Aug 2015 11:36:09 +0100 Subject: [PATCH] fixing image blacklist --- html/js/jquery.unveil.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/html/js/jquery.unveil.js b/html/js/jquery.unveil.js index 4bf9df5..b42ebdb 100644 --- a/html/js/jquery.unveil.js +++ b/html/js/jquery.unveil.js @@ -27,7 +27,8 @@ var flag = false; for (var item in blackList) { - if (source.indexOf(blackList[item])) { + var u = blackList[item]; + if (source.indexOf(u)) { flag = true; } } @@ -37,7 +38,7 @@ } if (flag) { - this.hide(); + this.setAttribute("style", 'display:none !important;'); } });