Browse Source

update

master
guy 7 years ago
parent
commit
20203eeac2
  1. 30
      dist/_fineui.min.js
  2. 12
      dist/base.js
  3. 12
      dist/bundle.js
  4. 2
      dist/bundle.min.css
  5. 54
      dist/bundle.min.js
  6. 2
      dist/fineui.min.css
  7. 30
      dist/fineui.min.js
  8. 12
      src/base/single/editor/editor.js

30
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

12
dist/base.js vendored

@ -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)) {

12
dist/bundle.js vendored

@ -54167,7 +54167,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);
}); });
@ -54186,17 +54186,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);
}); });
@ -54258,7 +54258,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();
}, },
@ -54279,7 +54279,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)) {

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

54
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

30
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

12
src/base/single/editor/editor.js

@ -107,7 +107,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);
}); });
@ -126,17 +126,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);
}); });
@ -198,7 +198,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();
}, },
@ -219,7 +219,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)) {

Loading…
Cancel
Save