summaryrefslogtreecommitdiff
path: root/js/hide-images.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/hide-images.js')
-rw-r--r--js/hide-images.js2
1 files changed, 1 insertions, 1 deletions
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();
}