diff --git a/share/static/js/receive.js b/share/static/js/receive.js
index 30b6a46d..eac67412 100644
--- a/share/static/js/receive.js
+++ b/share/static/js/receive.js
@@ -4,10 +4,8 @@ $(function(){
$('#flashes').append($('
').addClass(category).text(message));
};
- var scriptEls = document.getElementsByTagName( 'script' );
- var thisScriptEl = scriptEls[scriptEls.length - 1];
- var scriptPath = thisScriptEl.src;
- var scriptFolder = scriptPath.substr(0, scriptPath.lastIndexOf( '/' )+1 );
+ var scriptSrc = document.getElementById('receive-script').src;
+ var staticImgPath = scriptSrc.substr(0, scriptSrc.lastIndexOf( '/' )+1).replace('js', 'img');
// Intercept submitting the form
$('#send').submit(function(event){
@@ -43,7 +41,7 @@ $(function(){
// and update the status
if(event.loaded == event.total) {
$('.cancel', ajax.$upload_div).remove();
- $('.upload-status', ajax.$upload_div).html('
Waiting for data to finish traversing Tor network ...');
+ $('.upload-status', ajax.$upload_div).html('
Waiting for data to finish traversing Tor network ...');
}
}, false);
diff --git a/share/templates/receive.html b/share/templates/receive.html
index 59a3ebe4..08875db1 100644
--- a/share/templates/receive.html
+++ b/share/templates/receive.html
@@ -39,6 +39,6 @@
-
+