Pascal Gloor 5年前
コミット
d42cb9b9cf
1個のファイルの変更2行の追加2行の削除
  1. 2
    2
      www/js/autodoc.js

+ 2
- 2
www/js/autodoc.js ファイルの表示

@@ -266,12 +266,12 @@ function upload_read_event(e) {
xhr: function()
{
var xhr = new window.XMLHttpRequest();
xhr.upload.addEventListener("progress", function(evt, x){
xhr.upload['data'] = e.data;
xhr.upload.addEventListener("progress", function(evt){
if (evt.lengthComputable) {
var progress = Math.floor(evt.loaded / evt.total * 50);
if ( progress < 1 ) { progress = 1; }
if ( progress > 49 ) { progress = 49; }
console.log("upload_progress_this", x);
console.log("upload_progress_event", evt);
}
}, false);

読み込み中…
キャンセル
保存