From cd0bcacd9f8fcb2fcb057dc1c76726e5f9fe4c3b Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Fri, 7 Nov 2014 15:53:11 +0300 Subject: [PATCH] WebUI: Fix upload window closing on old browsers. --- src/webui/www/public/upload.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/webui/www/public/upload.html b/src/webui/www/public/upload.html index f7ded939d..c9bc1218f 100644 --- a/src/webui/www/public/upload.html +++ b/src/webui/www/public/upload.html @@ -49,7 +49,9 @@ window.addEvent('load', function() { // is XHR2 available? var xhr = new XMLHttpRequest(); if (xhr.upload) - $('submitbutton').addClass("invisible"); + $('submitbutton').addClass("invisible"); + else + $('upload_frame').addEvent('load', function(e) { window.parent.closeWindows(); }); }); @@ -60,7 +62,7 @@ window.addEvent('load', function() {
-