summaryrefslogtreecommitdiff
path: root/js/toggle-images.js
diff options
context:
space:
mode:
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)