diff --git a/templates/file_upload_progress_page.html b/templates/file_upload_progress_page.html index a6c90ea36e..1130319f3a 100644 --- a/templates/file_upload_progress_page.html +++ b/templates/file_upload_progress_page.html @@ -5,10 +5,9 @@ // Update progress bar function update_progress_info() { $.ajax({ - url: '{{ SITE_ROOT }}file_upload_progress/?X-Progress-ID=' + '{{ uuid }}', - dataType: 'json', + url: '{{ httpserver_root }}/upload_progress/?X-Progress-ID=' + '{{ uuid }}' + '&callback=?', + dataType: 'jsonp', cache: false, - contentType: 'application/json; charset=utf-8', success: function(data) { if (data) { $('#upload-progress-text', window.parent.document).html(filesizeformat(data.uploaded) + ' / ' + filesizeformat(data.length)); diff --git a/templates/repo_update_file.html b/templates/repo_update_file.html index 35c9fad536..2a16fffa3e 100644 --- a/templates/repo_update_file.html +++ b/templates/repo_update_file.html @@ -13,7 +13,7 @@ {% endif %} {% endfor %} -