Skip to content

Commit

Permalink
Merge branch 'master' into 2.1-src
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Oct 25, 2017
2 parents 7571749 + 8469310 commit e9d7e60
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions js/extras/editors.default.js
Expand Up @@ -117,10 +117,10 @@
file = this.file,
src = 'https://pixlr.com/'+mode+'/?s=c',
myurl = window.location.href.toString().replace(/#.*$/, ''),
error = function() {
error = function(error) {
container.remove();
node.data('loading')(true);
fm.error('Can not launch Pixlr.');
fm.error(error || 'Can not launch Pixlr.');
},
launch = function() {
errtm = setTimeout(error, 10000);
Expand All @@ -146,6 +146,11 @@
})
.on('load', function() {
errtm && clearTimeout(errtm);
setTimeout(function() {
if (container.is(':hidden')) {
error('Please disable your ad blocker.');
}
}, 1000);
})
.on('error', error)
.appendTo(elfNode.hasClass('elfinder-fullscreen')? elfNode : 'body');
Expand Down

0 comments on commit e9d7e60

Please sign in to comment.