From 5176377045d25ab00ed4653f980e9a95a17b0e31 Mon Sep 17 00:00:00 2001 From: 8chan Date: Fri, 20 Feb 2015 01:51:06 -0800 Subject: Fix many features for Internet Explorer 9 and 10 Please don't use "dataset" in scripts anymore, it doesn't work in IE9 or 10. Instead use $.data --- js/hide-images.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/hide-images.js') diff --git a/js/hide-images.js b/js/hide-images.js index 323a1a1f..4fdad891 100644 --- a/js/hide-images.js +++ b/js/hide-images.js @@ -77,7 +77,7 @@ $(document).ready(function(){ $(this).hide().after(show_link); - if ($(img).parent()[0].dataset.expanded == 'true') { + if ($(img).parent().data('expanded') == 'true') { $(img).parent().click(); } -- cgit v1.3