|
|
@ -18407,7 +18407,7 @@ BI.Editor = BI.inherit(BI.Single, { |
|
|
|
self.fireEvent(BI.Editor.EVENT_FOCUS, arguments); |
|
|
|
self.fireEvent(BI.Editor.EVENT_FOCUS, arguments); |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.editor.on(BI.Input.EVENT_BLUR, function () { |
|
|
|
this.editor.on(BI.Input.EVENT_BLUR, function () { |
|
|
|
self.setErrorVisible(false); |
|
|
|
self._setErrorVisible(false); |
|
|
|
self.element.removeClass("bi-editor-focus"); |
|
|
|
self.element.removeClass("bi-editor-focus"); |
|
|
|
self.fireEvent(BI.Editor.EVENT_BLUR, arguments); |
|
|
|
self.fireEvent(BI.Editor.EVENT_BLUR, arguments); |
|
|
|
}); |
|
|
|
}); |
|
|
@ -18426,17 +18426,17 @@ BI.Editor = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
this.editor.on(BI.Input.EVENT_VALID, function () { |
|
|
|
this.editor.on(BI.Input.EVENT_VALID, function () { |
|
|
|
self._checkWaterMark(); |
|
|
|
self._checkWaterMark(); |
|
|
|
self.setErrorVisible(false); |
|
|
|
self._setErrorVisible(false); |
|
|
|
self.fireEvent(BI.Editor.EVENT_VALID, arguments); |
|
|
|
self.fireEvent(BI.Editor.EVENT_VALID, arguments); |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.editor.on(BI.Input.EVENT_ERROR, function () { |
|
|
|
this.editor.on(BI.Input.EVENT_ERROR, function () { |
|
|
|
self._checkWaterMark(); |
|
|
|
self._checkWaterMark(); |
|
|
|
self.fireEvent(BI.Editor.EVENT_ERROR, arguments); |
|
|
|
self.fireEvent(BI.Editor.EVENT_ERROR, arguments); |
|
|
|
self.setErrorVisible(self.isEditing()); |
|
|
|
self._setErrorVisible(self.isEditing()); |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.editor.on(BI.Input.EVENT_RESTRICT, function () { |
|
|
|
this.editor.on(BI.Input.EVENT_RESTRICT, function () { |
|
|
|
self._checkWaterMark(); |
|
|
|
self._checkWaterMark(); |
|
|
|
var tip = self.setErrorVisible(true); |
|
|
|
var tip = self._setErrorVisible(true); |
|
|
|
tip && tip.element.fadeOut(100, function () { |
|
|
|
tip && tip.element.fadeOut(100, function () { |
|
|
|
tip.element.fadeIn(100); |
|
|
|
tip.element.fadeIn(100); |
|
|
|
}); |
|
|
|
}); |
|
|
@ -18498,7 +18498,7 @@ BI.Editor = BI.inherit(BI.Single, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_checkError: function () { |
|
|
|
_checkError: function () { |
|
|
|
this.setErrorVisible(this.isEnabled() && !this.isValid()); |
|
|
|
this._setErrorVisible(this.isEnabled() && !this.isValid()); |
|
|
|
this._checkToolTip(); |
|
|
|
this._checkToolTip(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -18519,7 +18519,7 @@ BI.Editor = BI.inherit(BI.Single, { |
|
|
|
return this.options.errorText; |
|
|
|
return this.options.errorText; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setErrorVisible: function (b) { |
|
|
|
_setErrorVisible: function (b) { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
var errorText = o.errorText; |
|
|
|
var errorText = o.errorText; |
|
|
|
if (BI.isFunction(errorText)) { |
|
|
|
if (BI.isFunction(errorText)) { |
|
|
|