|
|
@ -21674,8 +21674,10 @@ BI.prepares.push(function () { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
var addResizeListener = function (element, fn) { |
|
|
|
var addResizeListener = function (element, fn) { |
|
|
|
if (attachEvent) element.attachEvent("onresize", fn); |
|
|
|
if (attachEvent) { |
|
|
|
else { |
|
|
|
element.attachEvent("onresize", fn); |
|
|
|
|
|
|
|
fn(); |
|
|
|
|
|
|
|
} else { |
|
|
|
if (!element.__resizeTriggers__) { |
|
|
|
if (!element.__resizeTriggers__) { |
|
|
|
if (getComputedStyle(element).position === "static") element.style.position = "relative"; |
|
|
|
if (getComputedStyle(element).position === "static") element.style.position = "relative"; |
|
|
|
createStyles(); |
|
|
|
createStyles(); |
|
|
@ -38075,14 +38077,15 @@ BI.Pane = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
loading: function () { |
|
|
|
loading: function () { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
var isIE = BI.isIE(); |
|
|
|
var loadingAnimation = BI.createWidget({ |
|
|
|
var loadingAnimation = BI.createWidget({ |
|
|
|
type: "bi.horizontal", |
|
|
|
type: "bi.horizontal", |
|
|
|
cls: "bi-loading-widget" + ((BI.isIE() && BI.getIEVersion() < 10) ? " hack" : ""), |
|
|
|
cls: "bi-loading-widget" + (isIE ? " wave-loading hack" : ""), |
|
|
|
height: 30, |
|
|
|
height: 30, |
|
|
|
width: 30, |
|
|
|
width: 30, |
|
|
|
hgap: 5, |
|
|
|
hgap: 5, |
|
|
|
vgap: 2.5, |
|
|
|
vgap: 2.5, |
|
|
|
items: [{ |
|
|
|
items: isIE ? [] : [{ |
|
|
|
type: "bi.layout", |
|
|
|
type: "bi.layout", |
|
|
|
cls: "animate-rect rect1", |
|
|
|
cls: "animate-rect rect1", |
|
|
|
height: 25, |
|
|
|
height: 25, |
|
|
@ -47873,9 +47876,13 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/** |
|
|
|
handler.attach_array.push(attachO); |
|
|
|
handler.attach_array.push(attachO); |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
if (isFunction(handler.onerror)) {handler.onerror(rpe, event || _global.event);} |
|
|
|
if (isFunction(handler.onerror)) { |
|
|
|
|
|
|
|
handler.onerror(rpe, event || _global.event); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (isFunction(handler.onload)) { |
|
|
|
|
|
|
|
handler.onload(rpe, {responseText: responseText}); |
|
|
|
} |
|
|
|
} |
|
|
|
if (isFunction(handler.onload)) {handler.onload(rpe, {responseText: responseText});} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
target = ["AjaxUpload", (new Date).getTime(), String(Math.random()).substring(2)].join("_"); |
|
|
|
target = ["AjaxUpload", (new Date).getTime(), String(Math.random()).substring(2)].join("_"); |
|
|
|
try { // IE < 8 does not accept enctype attribute ...
|
|
|
|
try { // IE < 8 does not accept enctype attribute ...
|
|
|
@ -48086,7 +48093,14 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/** |
|
|
|
self.fireEvent(BI.File.EVENT_ERROR); |
|
|
|
self.fireEvent(BI.File.EVENT_ERROR); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
self.fireEvent(BI.File.EVENT_UPLOADED); |
|
|
|
var error = BI.some(_wrap.attach_array, function (index, attach) { |
|
|
|
|
|
|
|
if (attach.errorCode) { |
|
|
|
|
|
|
|
BI.Msg.toast(attach.errorMsg, {level: "error"}); |
|
|
|
|
|
|
|
self.fireEvent(BI.File.EVENT_ERROR, attach); |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
!error && self.fireEvent(BI.File.EVENT_UPLOADED); |
|
|
|
// enable again the submit button/element
|
|
|
|
// enable again the submit button/element
|
|
|
|
}, 1000); |
|
|
|
}, 1000); |
|
|
|
}; |
|
|
|
}; |
|
|
@ -48292,10 +48306,10 @@ BI.Input = BI.inherit(BI.Single, { |
|
|
|
// 通过keyCode判断会漏掉输入法点击输入(右键粘贴暂缓)
|
|
|
|
// 通过keyCode判断会漏掉输入法点击输入(右键粘贴暂缓)
|
|
|
|
var originalEvent = e.originalEvent; |
|
|
|
var originalEvent = e.originalEvent; |
|
|
|
if (BI.isNull(originalEvent.propertyName) || originalEvent.propertyName === "value") { |
|
|
|
if (BI.isNull(originalEvent.propertyName) || originalEvent.propertyName === "value") { |
|
|
|
keyCode = null; |
|
|
|
|
|
|
|
inputEventValid = true; |
|
|
|
inputEventValid = true; |
|
|
|
self._keydown_ = true; |
|
|
|
self._keydown_ = true; |
|
|
|
_keydown(keyCode); |
|
|
|
_keydown(keyCode); |
|
|
|
|
|
|
|
keyCode = null; |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
.click(function (e) { |
|
|
|
.click(function (e) { |
|
|
@ -48400,18 +48414,20 @@ BI.Input = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
this.fireEvent(BI.Input.EVENT_KEY_DOWN); |
|
|
|
this.fireEvent(BI.Input.EVENT_KEY_DOWN); |
|
|
|
|
|
|
|
|
|
|
|
if (BI.isEndWithBlank(this.getValue()) && BI.trim(this.getValue()) === BI.trim(this._lastValue || "")) { |
|
|
|
// _valueChange中会更新_lastValue, 这边缓存用以后续STOP事件服务
|
|
|
|
|
|
|
|
var lastValue = this._lastValue; |
|
|
|
|
|
|
|
if(BI.trim(this.getValue()) !== BI.trim(this._lastValue || "")){ |
|
|
|
|
|
|
|
this._valueChange(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (BI.isEndWithBlank(this.getValue())) { |
|
|
|
this._pause = true; |
|
|
|
this._pause = true; |
|
|
|
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.PAUSE, "", this); |
|
|
|
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.PAUSE, "", this); |
|
|
|
this.fireEvent(BI.Input.EVENT_PAUSE); |
|
|
|
this.fireEvent(BI.Input.EVENT_PAUSE); |
|
|
|
this._defaultState(); |
|
|
|
this._defaultState(); |
|
|
|
} else if ((keyCode === BI.KeyCode.BACKSPACE || keyCode === BI.KeyCode.DELETE) && |
|
|
|
} else if ((keyCode === BI.KeyCode.BACKSPACE || keyCode === BI.KeyCode.DELETE) && |
|
|
|
BI.trim(this.getValue()) === "" && (this._lastValue !== null && BI.trim(this._lastValue) !== "")) { |
|
|
|
BI.trim(this.getValue()) === "" && (lastValue !== null && BI.trim(lastValue) !== "")) { |
|
|
|
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STOPEDIT, this.getValue(), this); |
|
|
|
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STOPEDIT, this.getValue(), this); |
|
|
|
this.fireEvent(BI.Input.EVENT_STOP); |
|
|
|
this.fireEvent(BI.Input.EVENT_STOP); |
|
|
|
this._valueChange(); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this._valueChange(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|