summaryrefslogtreecommitdiff
path: root/js/toggle-images.js
diff options
context:
space:
mode:
author8chan <admin@8chan.co>2015-02-20 01:51:06 -0800
committerczaks <marcin@6irc.net>2016-05-05 12:15:26 +0200
commit5176377045d25ab00ed4653f980e9a95a17b0e31 (patch)
treea08ae71b97697b7d576c0e6f9d243d4be0acc59c /js/toggle-images.js
parent88f6088a429fb73d12805377b43c6b567d03a5db (diff)
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
Diffstat (limited to 'js/toggle-images.js')
-rw-r--r--js/toggle-images.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/toggle-images.js b/js/toggle-images.js
index b8940252..c3636d29 100644
--- a/js/toggle-images.js
+++ b/js/toggle-images.js
@@ -20,7 +20,7 @@ $(document).ready(function(){
$('<style type="text/css"> img.hidden{ opacity: 0.1; background: grey; border: 1px solid #000; } </style>').appendTo($('head'));
var hideImage = function() {
- if ($(this).parent()[0].dataset.expanded == 'true') {
+ if ($(this).parent().data('expanded') == 'true') {
$(this).parent().click();
}
$(this)