forked from leftypol/leftypol
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:
parent
88f6088a42
commit
5176377045
7 changed files with 45 additions and 45 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue