guy 8 years ago
parent
commit
5db561f57a
  1. 4
      bi/base.js
  2. 4
      dist/base.js
  3. 4
      src/base/single/input/file.js

4
bi/base.js

@ -18259,7 +18259,7 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/**
}, },
false false
); );
xhr.open("post", handler.url + '&filename=' + BI.cjkEncode(handler.file.fileName), true); xhr.open("post", handler.url + '&filename=' + window.encodeURIComponent(handler.file.fileName), true);
if (!xhr.upload) { if (!xhr.upload) {
var rpe = {loaded: 0, total: handler.file.fileSize || handler.file.size, simulation: true}; var rpe = {loaded: 0, total: handler.file.fileSize || handler.file.size, simulation: true};
rpe.interval = setInterval(function () { rpe.interval = setInterval(function () {
@ -18708,7 +18708,7 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/**
}, },
setEnable: function (enable) { setEnable: function (enable) {
BI.MultiFile.superclass.setEnable.apply(this, arguments); BI.File.superclass.setEnable.apply(this, arguments);
if (enable === true) { if (enable === true) {
this.element.attr("disabled", "disabled"); this.element.attr("disabled", "disabled");
} else { } else {

4
dist/base.js vendored

@ -18259,7 +18259,7 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/**
}, },
false false
); );
xhr.open("post", handler.url + '&filename=' + BI.cjkEncode(handler.file.fileName), true); xhr.open("post", handler.url + '&filename=' + window.encodeURIComponent(handler.file.fileName), true);
if (!xhr.upload) { if (!xhr.upload) {
var rpe = {loaded: 0, total: handler.file.fileSize || handler.file.size, simulation: true}; var rpe = {loaded: 0, total: handler.file.fileSize || handler.file.size, simulation: true};
rpe.interval = setInterval(function () { rpe.interval = setInterval(function () {
@ -18708,7 +18708,7 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/**
}, },
setEnable: function (enable) { setEnable: function (enable) {
BI.MultiFile.superclass.setEnable.apply(this, arguments); BI.File.superclass.setEnable.apply(this, arguments);
if (enable === true) { if (enable === true) {
this.element.attr("disabled", "disabled"); this.element.attr("disabled", "disabled");
} else { } else {

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

@ -153,7 +153,7 @@
}, },
false false
); );
xhr.open("post", handler.url + '&filename=' + BI.cjkEncode(handler.file.fileName), true); xhr.open("post", handler.url + '&filename=' + window.encodeURIComponent(handler.file.fileName), true);
if (!xhr.upload) { if (!xhr.upload) {
var rpe = {loaded: 0, total: handler.file.fileSize || handler.file.size, simulation: true}; var rpe = {loaded: 0, total: handler.file.fileSize || handler.file.size, simulation: true};
rpe.interval = setInterval(function () { rpe.interval = setInterval(function () {
@ -602,7 +602,7 @@
}, },
setEnable: function (enable) { setEnable: function (enable) {
BI.MultiFile.superclass.setEnable.apply(this, arguments); BI.File.superclass.setEnable.apply(this, arguments);
if (enable === true) { if (enable === true) {
this.element.attr("disabled", "disabled"); this.element.attr("disabled", "disabled");
} else { } else {

Loading…
Cancel
Save