瀏覽代碼

bug ;)

master
Pascal Gloor 5 年之前
父節點
當前提交
e1a93d559b
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4
    4
      www/js/autodoc.js

+ 4
- 4
www/js/autodoc.js 查看文件

@@ -249,7 +249,6 @@ function upload_read_event(e) {
}
}
else if ( e.type == 'load' ) {
var xhr = new XMLHttpRequest();
temp.upload[e.data]['progress'] = 50;
@@ -258,15 +257,16 @@ function upload_read_event(e) {
url: conf.openapi + "/documents/" + temp.documentid + "/data",
data: e.target.result,
context: e.data,
beforeSend: function(XMLHttpRequest)
xhr: function()
{
XMLHttpRequest.upload.addEventListener("progress", function(evt){
var xhr = new window.XMLHttpRequest();
xhr.upload.addEventListener("progress", function(evt){
if (evt.lengthComputable) {
var percentComplete = evt.loaded / evt.total;
console.log("upload_progress_event", evt);
}
}, false);
return xhr;
},
success: function(data){
console.log("upload_complete",data);

Loading…
取消
儲存