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
This commit is contained in:
8chan
2015-02-20 01:51:06 -08:00
committed by czaks
parent 88f6088a42
commit 5176377045
7 changed files with 45 additions and 45 deletions

View File

@@ -31,7 +31,7 @@ onready(function(){
if (/^\/player\.php\?/.test($(this).parent().attr('href')))
return;
if (!$(this).parent()[0].dataset.expanded)
if (!$(this).parent().data('expanded'))
$(this).parent().click();
});
@@ -43,7 +43,7 @@ onready(function(){
.text(_('Shrink all images'))
.click(function(){
$('a img.full-image').each(function() {
if ($(this).parent()[0].dataset.expanded)
if ($(this).parent().data('expanded'))
$(this).parent().click();
});
$(this).parent().remove();