MCPcopy Create free account
hub / github.com/TruthHun/BookStack / updateProgress

Function updateProgress

static/wangEditor/js/wangEditor.js:6648–6653  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

6646
6647 // -------- onprogress 事件 --------
6648 function updateProgress(e) {
6649 if (e.lengthComputable) {
6650 var percentComplete = e.loaded / e.total;
6651 editor.showUploadProgress(percentComplete * 100);
6652 }
6653 }
6654
6655 // -------- xhr 上传图片 --------
6656 editor.xhrUploadImg = function (opt) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected