From aaa4db8d299a2bfb4678994f2d493fa35b711eae Mon Sep 17 00:00:00 2001 From: Arjun Singh Date: Mon, 17 Sep 2012 15:54:24 -0700 Subject: [PATCH] Fixes image uploades in firefox --- lms/static/js/jquery.ajaxfileupload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/static/js/jquery.ajaxfileupload.js b/lms/static/js/jquery.ajaxfileupload.js index d761c5ae3c..e588d3555a 100644 --- a/lms/static/js/jquery.ajaxfileupload.js +++ b/lms/static/js/jquery.ajaxfileupload.js @@ -79,7 +79,7 @@ jQuery.extend({ try { if(io.contentWindow){ xml.responseText = io.contentWindow.document.body ? - io.contentWindow.document.body.innerText : null; + io.contentWindow.document.body.textContent || io.contentWindow.document.body.innerText : null; xml.responseXML = io.contentWindow.document.XMLDocument ? io.contentWindow.document.XMLDocument : io.contentWindow.document;