Browse Source

Merge pull request #142622 in DEC/fineui from master to feature/x

* commit '1ed58f2ceafc59c2a10aa3b49f143a01c03bd7db':
  KERNEL-12408:base中eslint的修改
  KERNEL-12408:base中eslint的修改
master
superman 2 years ago
parent
commit
e83ed927d9
  1. 8
      src/base/single/input/file.js

8
src/base/single/input/file.js

@ -88,7 +88,7 @@
var split = "onabort.onerror.onloadstart.onprogress".split("."), var split = "onabort.onerror.onloadstart.onprogress".split("."),
length = split.length, length = split.length,
CRLF = "\r\n", CRLF = "\r\n",
xhr = XMLHttpRequest ? new XMLHttpRequest : new ActiveXObject("Microsoft.XMLHTTP"), xhr = new XMLHttpRequest,
sendFile; sendFile;
function multipart(boundary, name, file) { function multipart(boundary, name, file) {
return "--".concat( return "--".concat(
@ -251,7 +251,7 @@
} else { } else {
// Internet Explorer, Opera, others // Internet Explorer, Opera, others
sendFile = function (handler, maxSize, width, height) { sendFile = function (handler, maxSize, width, height) {
var current = handler.current; var current = handler.current, iframe, form;
var url = handler.url.concat(-1 === handler.url.indexOf("?") ? "?" : "&", "AjaxUploadFrame=true"), var url = handler.url.concat(-1 === handler.url.indexOf("?") ? "?" : "&", "AjaxUploadFrame=true"),
rpe = { rpe = {
loaded: 1, total: 100, simulation: true, interval: setInterval(function () { loaded: 1, total: 100, simulation: true, interval: setInterval(function () {
@ -499,9 +499,9 @@
if (this.file.fileSize !== -1) { if (this.file.fileSize !== -1) {
// simulation property indicates when the progress event is fake // simulation property indicates when the progress event is fake
if (rpe.simulation) { if (rpe.simulation) {
// empty
} else { } else {
// empty
} }
} else { } else {
// if fileSIze is -1 browser is using an iframe because it does // if fileSIze is -1 browser is using an iframe because it does

Loading…
Cancel
Save