From b61c2d528bfa36df38479faca3624cbda4e5b9a3 Mon Sep 17 00:00:00 2001 From: Aysam Guerler Date: Sat, 12 Oct 2013 13:07:00 -0400 Subject: [PATCH] Fix upload box plugin --- static/scripts/utils/galaxy.uploadbox.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/scripts/utils/galaxy.uploadbox.js b/static/scripts/utils/galaxy.uploadbox.js index 7c2e33bda00..002c7c4122a 100755 --- a/static/scripts/utils/galaxy.uploadbox.js +++ b/static/scripts/utils/galaxy.uploadbox.js @@ -46,6 +46,9 @@ // element var el = null; + // xml request element + var xhr = null; + // attach to element $.fn.uploadbox = function(options) { @@ -237,7 +240,7 @@ formData.append(opts.paramname, file, file.name); // prepare request - var xhr = new XMLHttpRequest(); + xhr = new XMLHttpRequest(); // captures state changes xhr.onreadystatechange = function()