Fix compatibility with jQuery 3.x

pull/298/merge
Aleksander Machniak 8 years ago
parent a5348bbe7f
commit eecc601601

@ -8971,8 +8971,8 @@ function rcube_webmail()
window.setTimeout(function() { window.setTimeout(function() {
$('<object>').css({position: 'absolute', left: '-10000px'}) $('<object>').css({position: 'absolute', left: '-10000px'})
.attr({data: ref.assets_path('program/resources/dummy.pdf'), width: 1, height: 1, type: 'application/pdf'}) .attr({data: ref.assets_path('program/resources/dummy.pdf'), width: 1, height: 1, type: 'application/pdf'})
.load(function() { ref.env.browser_capabilities.pdf = 1; }) .on('load', function() { ref.env.browser_capabilities.pdf = 1; })
.error(function() { ref.env.browser_capabilities.pdf = 0; }) .on('error', function() { ref.env.browser_capabilities.pdf = 0; })
.appendTo($('body')); .appendTo($('body'));
}, 10); }, 10);

Loading…
Cancel
Save