Browse Source

revert: numbereditor修改

master
windy 5 years ago
parent
commit
23cc5381d3
  1. 17
      dist/2.0/fineui.ie.js
  2. 17
      dist/2.0/fineui.js
  3. 17
      dist/bundle.ie.js
  4. 17
      dist/bundle.js
  5. 17
      dist/fineui.ie.js
  6. 17
      dist/fineui.js
  7. 17
      dist/fineui_without_jquery_polyfill.js
  8. 17
      dist/widget.js
  9. 4
      src/widget/dynamicdatetime/dynamicdatetime.timeselect.js
  10. 13
      src/widget/numbereditor/number.editor.js

17
dist/2.0/fineui.ie.js vendored

@ -66173,8 +66173,8 @@ BI.shortcut("bi.dynamic_date_time_popup", BI.DynamicDateTimePopup);BI.DynamicDat
} }
}, { }, {
eventName: BI.SignEditor.EVENT_CHANGE, eventName: BI.SignEditor.EVENT_CHANGE,
action: function (v) { action: function () {
var value = self._autoSwitch(v, BI.DynamicDateTimeSelect.HOUR); var value = self._autoSwitch(this.getValue(), BI.DynamicDateTimeSelect.HOUR);
this.setValue(value); this.setValue(value);
} }
}], }],
@ -77562,11 +77562,12 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
errorText: o.errorText errorText: o.errorText
}); });
this.editor.on(BI.TextEditor.EVENT_CHANGE, function () { this.editor.on(BI.TextEditor.EVENT_CHANGE, function () {
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, self.getLastChangedValue()); o.value = BI.parseFloat(this.getValue());
self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
}); });
this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () { this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () {
o.value = BI.parseFloat(this.getValue()); o.value = BI.parseFloat(this.getValue());
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, self.getLastChangedValue()); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
this.topBtn = BI.createWidget({ this.topBtn = BI.createWidget({
type: "bi.icon_button", type: "bi.icon_button",
@ -77576,8 +77577,8 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
}); });
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(o.step); self._finetuning(o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, o.value); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, o.value); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
this.bottomBtn = BI.createWidget({ this.bottomBtn = BI.createWidget({
type: "bi.icon_button", type: "bi.icon_button",
@ -77587,8 +77588,8 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
}); });
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(-o.step); self._finetuning(-o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, o.value); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, o.value); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
BI.createWidget({ BI.createWidget({
type: "bi.htape", type: "bi.htape",

17
dist/2.0/fineui.js vendored

@ -66577,8 +66577,8 @@ BI.shortcut("bi.dynamic_date_time_popup", BI.DynamicDateTimePopup);BI.DynamicDat
} }
}, { }, {
eventName: BI.SignEditor.EVENT_CHANGE, eventName: BI.SignEditor.EVENT_CHANGE,
action: function (v) { action: function () {
var value = self._autoSwitch(v, BI.DynamicDateTimeSelect.HOUR); var value = self._autoSwitch(this.getValue(), BI.DynamicDateTimeSelect.HOUR);
this.setValue(value); this.setValue(value);
} }
}], }],
@ -77966,11 +77966,12 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
errorText: o.errorText errorText: o.errorText
}); });
this.editor.on(BI.TextEditor.EVENT_CHANGE, function () { this.editor.on(BI.TextEditor.EVENT_CHANGE, function () {
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, self.getLastChangedValue()); o.value = BI.parseFloat(this.getValue());
self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
}); });
this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () { this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () {
o.value = BI.parseFloat(this.getValue()); o.value = BI.parseFloat(this.getValue());
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, self.getLastChangedValue()); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
this.topBtn = BI.createWidget({ this.topBtn = BI.createWidget({
type: "bi.icon_button", type: "bi.icon_button",
@ -77980,8 +77981,8 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
}); });
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(o.step); self._finetuning(o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, o.value); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, o.value); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
this.bottomBtn = BI.createWidget({ this.bottomBtn = BI.createWidget({
type: "bi.icon_button", type: "bi.icon_button",
@ -77991,8 +77992,8 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
}); });
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(-o.step); self._finetuning(-o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, o.value); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, o.value); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
BI.createWidget({ BI.createWidget({
type: "bi.htape", type: "bi.htape",

17
dist/bundle.ie.js vendored

@ -66173,8 +66173,8 @@ BI.shortcut("bi.dynamic_date_time_popup", BI.DynamicDateTimePopup);BI.DynamicDat
} }
}, { }, {
eventName: BI.SignEditor.EVENT_CHANGE, eventName: BI.SignEditor.EVENT_CHANGE,
action: function (v) { action: function () {
var value = self._autoSwitch(v, BI.DynamicDateTimeSelect.HOUR); var value = self._autoSwitch(this.getValue(), BI.DynamicDateTimeSelect.HOUR);
this.setValue(value); this.setValue(value);
} }
}], }],
@ -77562,11 +77562,12 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
errorText: o.errorText errorText: o.errorText
}); });
this.editor.on(BI.TextEditor.EVENT_CHANGE, function () { this.editor.on(BI.TextEditor.EVENT_CHANGE, function () {
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, self.getLastChangedValue()); o.value = BI.parseFloat(this.getValue());
self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
}); });
this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () { this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () {
o.value = BI.parseFloat(this.getValue()); o.value = BI.parseFloat(this.getValue());
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, self.getLastChangedValue()); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
this.topBtn = BI.createWidget({ this.topBtn = BI.createWidget({
type: "bi.icon_button", type: "bi.icon_button",
@ -77576,8 +77577,8 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
}); });
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(o.step); self._finetuning(o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, o.value); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, o.value); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
this.bottomBtn = BI.createWidget({ this.bottomBtn = BI.createWidget({
type: "bi.icon_button", type: "bi.icon_button",
@ -77587,8 +77588,8 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
}); });
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(-o.step); self._finetuning(-o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, o.value); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, o.value); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
BI.createWidget({ BI.createWidget({
type: "bi.htape", type: "bi.htape",

17
dist/bundle.js vendored

@ -66577,8 +66577,8 @@ BI.shortcut("bi.dynamic_date_time_popup", BI.DynamicDateTimePopup);BI.DynamicDat
} }
}, { }, {
eventName: BI.SignEditor.EVENT_CHANGE, eventName: BI.SignEditor.EVENT_CHANGE,
action: function (v) { action: function () {
var value = self._autoSwitch(v, BI.DynamicDateTimeSelect.HOUR); var value = self._autoSwitch(this.getValue(), BI.DynamicDateTimeSelect.HOUR);
this.setValue(value); this.setValue(value);
} }
}], }],
@ -77966,11 +77966,12 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
errorText: o.errorText errorText: o.errorText
}); });
this.editor.on(BI.TextEditor.EVENT_CHANGE, function () { this.editor.on(BI.TextEditor.EVENT_CHANGE, function () {
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, self.getLastChangedValue()); o.value = BI.parseFloat(this.getValue());
self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
}); });
this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () { this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () {
o.value = BI.parseFloat(this.getValue()); o.value = BI.parseFloat(this.getValue());
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, self.getLastChangedValue()); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
this.topBtn = BI.createWidget({ this.topBtn = BI.createWidget({
type: "bi.icon_button", type: "bi.icon_button",
@ -77980,8 +77981,8 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
}); });
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(o.step); self._finetuning(o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, o.value); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, o.value); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
this.bottomBtn = BI.createWidget({ this.bottomBtn = BI.createWidget({
type: "bi.icon_button", type: "bi.icon_button",
@ -77991,8 +77992,8 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
}); });
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(-o.step); self._finetuning(-o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, o.value); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, o.value); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
BI.createWidget({ BI.createWidget({
type: "bi.htape", type: "bi.htape",

17
dist/fineui.ie.js vendored

@ -66418,8 +66418,8 @@ BI.shortcut("bi.dynamic_date_time_popup", BI.DynamicDateTimePopup);BI.DynamicDat
} }
}, { }, {
eventName: BI.SignEditor.EVENT_CHANGE, eventName: BI.SignEditor.EVENT_CHANGE,
action: function (v) { action: function () {
var value = self._autoSwitch(v, BI.DynamicDateTimeSelect.HOUR); var value = self._autoSwitch(this.getValue(), BI.DynamicDateTimeSelect.HOUR);
this.setValue(value); this.setValue(value);
} }
}], }],
@ -77807,11 +77807,12 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
errorText: o.errorText errorText: o.errorText
}); });
this.editor.on(BI.TextEditor.EVENT_CHANGE, function () { this.editor.on(BI.TextEditor.EVENT_CHANGE, function () {
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, self.getLastChangedValue()); o.value = BI.parseFloat(this.getValue());
self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
}); });
this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () { this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () {
o.value = BI.parseFloat(this.getValue()); o.value = BI.parseFloat(this.getValue());
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, self.getLastChangedValue()); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
this.topBtn = BI.createWidget({ this.topBtn = BI.createWidget({
type: "bi.icon_button", type: "bi.icon_button",
@ -77821,8 +77822,8 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
}); });
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(o.step); self._finetuning(o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, o.value); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, o.value); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
this.bottomBtn = BI.createWidget({ this.bottomBtn = BI.createWidget({
type: "bi.icon_button", type: "bi.icon_button",
@ -77832,8 +77833,8 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
}); });
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(-o.step); self._finetuning(-o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, o.value); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, o.value); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
BI.createWidget({ BI.createWidget({
type: "bi.htape", type: "bi.htape",

17
dist/fineui.js vendored

@ -66822,8 +66822,8 @@ BI.shortcut("bi.dynamic_date_time_popup", BI.DynamicDateTimePopup);BI.DynamicDat
} }
}, { }, {
eventName: BI.SignEditor.EVENT_CHANGE, eventName: BI.SignEditor.EVENT_CHANGE,
action: function (v) { action: function () {
var value = self._autoSwitch(v, BI.DynamicDateTimeSelect.HOUR); var value = self._autoSwitch(this.getValue(), BI.DynamicDateTimeSelect.HOUR);
this.setValue(value); this.setValue(value);
} }
}], }],
@ -78211,11 +78211,12 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
errorText: o.errorText errorText: o.errorText
}); });
this.editor.on(BI.TextEditor.EVENT_CHANGE, function () { this.editor.on(BI.TextEditor.EVENT_CHANGE, function () {
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, self.getLastChangedValue()); o.value = BI.parseFloat(this.getValue());
self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
}); });
this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () { this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () {
o.value = BI.parseFloat(this.getValue()); o.value = BI.parseFloat(this.getValue());
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, self.getLastChangedValue()); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
this.topBtn = BI.createWidget({ this.topBtn = BI.createWidget({
type: "bi.icon_button", type: "bi.icon_button",
@ -78225,8 +78226,8 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
}); });
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(o.step); self._finetuning(o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, o.value); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, o.value); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
this.bottomBtn = BI.createWidget({ this.bottomBtn = BI.createWidget({
type: "bi.icon_button", type: "bi.icon_button",
@ -78236,8 +78237,8 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
}); });
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(-o.step); self._finetuning(-o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, o.value); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, o.value); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
BI.createWidget({ BI.createWidget({
type: "bi.htape", type: "bi.htape",

17
dist/fineui_without_jquery_polyfill.js vendored

@ -49121,8 +49121,8 @@ BI.shortcut("bi.dynamic_date_time_popup", BI.DynamicDateTimePopup);BI.DynamicDat
} }
}, { }, {
eventName: BI.SignEditor.EVENT_CHANGE, eventName: BI.SignEditor.EVENT_CHANGE,
action: function (v) { action: function () {
var value = self._autoSwitch(v, BI.DynamicDateTimeSelect.HOUR); var value = self._autoSwitch(this.getValue(), BI.DynamicDateTimeSelect.HOUR);
this.setValue(value); this.setValue(value);
} }
}], }],
@ -60510,11 +60510,12 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
errorText: o.errorText errorText: o.errorText
}); });
this.editor.on(BI.TextEditor.EVENT_CHANGE, function () { this.editor.on(BI.TextEditor.EVENT_CHANGE, function () {
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, self.getLastChangedValue()); o.value = BI.parseFloat(this.getValue());
self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
}); });
this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () { this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () {
o.value = BI.parseFloat(this.getValue()); o.value = BI.parseFloat(this.getValue());
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, self.getLastChangedValue()); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
this.topBtn = BI.createWidget({ this.topBtn = BI.createWidget({
type: "bi.icon_button", type: "bi.icon_button",
@ -60524,8 +60525,8 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
}); });
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(o.step); self._finetuning(o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, o.value); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, o.value); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
this.bottomBtn = BI.createWidget({ this.bottomBtn = BI.createWidget({
type: "bi.icon_button", type: "bi.icon_button",
@ -60535,8 +60536,8 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
}); });
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(-o.step); self._finetuning(-o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, o.value); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, o.value); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
BI.createWidget({ BI.createWidget({
type: "bi.htape", type: "bi.htape",

17
dist/widget.js vendored

@ -4232,8 +4232,8 @@ BI.shortcut("bi.dynamic_date_time_popup", BI.DynamicDateTimePopup);BI.DynamicDat
} }
}, { }, {
eventName: BI.SignEditor.EVENT_CHANGE, eventName: BI.SignEditor.EVENT_CHANGE,
action: function (v) { action: function () {
var value = self._autoSwitch(v, BI.DynamicDateTimeSelect.HOUR); var value = self._autoSwitch(this.getValue(), BI.DynamicDateTimeSelect.HOUR);
this.setValue(value); this.setValue(value);
} }
}], }],
@ -15621,11 +15621,12 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
errorText: o.errorText errorText: o.errorText
}); });
this.editor.on(BI.TextEditor.EVENT_CHANGE, function () { this.editor.on(BI.TextEditor.EVENT_CHANGE, function () {
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, self.getLastChangedValue()); o.value = BI.parseFloat(this.getValue());
self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
}); });
this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () { this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () {
o.value = BI.parseFloat(this.getValue()); o.value = BI.parseFloat(this.getValue());
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, self.getLastChangedValue()); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
this.topBtn = BI.createWidget({ this.topBtn = BI.createWidget({
type: "bi.icon_button", type: "bi.icon_button",
@ -15635,8 +15636,8 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
}); });
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(o.step); self._finetuning(o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, o.value); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, o.value); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
this.bottomBtn = BI.createWidget({ this.bottomBtn = BI.createWidget({
type: "bi.icon_button", type: "bi.icon_button",
@ -15646,8 +15647,8 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
}); });
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(-o.step); self._finetuning(-o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, o.value); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, o.value); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
BI.createWidget({ BI.createWidget({
type: "bi.htape", type: "bi.htape",

4
src/widget/dynamicdatetime/dynamicdatetime.timeselect.js

@ -35,8 +35,8 @@ BI.DynamicDateTimeSelect = BI.inherit(BI.Widget, {
} }
}, { }, {
eventName: BI.SignEditor.EVENT_CHANGE, eventName: BI.SignEditor.EVENT_CHANGE,
action: function (v) { action: function () {
var value = self._autoSwitch(v, BI.DynamicDateTimeSelect.HOUR); var value = self._autoSwitch(this.getValue(), BI.DynamicDateTimeSelect.HOUR);
this.setValue(value); this.setValue(value);
} }
}], }],

13
src/widget/numbereditor/number.editor.js

@ -31,11 +31,12 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
errorText: o.errorText errorText: o.errorText
}); });
this.editor.on(BI.TextEditor.EVENT_CHANGE, function () { this.editor.on(BI.TextEditor.EVENT_CHANGE, function () {
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, self.getLastChangedValue()); o.value = BI.parseFloat(this.getValue());
self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
}); });
this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () { this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () {
o.value = BI.parseFloat(this.getValue()); o.value = BI.parseFloat(this.getValue());
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, self.getLastChangedValue()); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
this.topBtn = BI.createWidget({ this.topBtn = BI.createWidget({
type: "bi.icon_button", type: "bi.icon_button",
@ -45,8 +46,8 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
}); });
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(o.step); self._finetuning(o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, o.value); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, o.value); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
this.bottomBtn = BI.createWidget({ this.bottomBtn = BI.createWidget({
type: "bi.icon_button", type: "bi.icon_button",
@ -56,8 +57,8 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
}); });
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(-o.step); self._finetuning(-o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE, o.value); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM, o.value); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}); });
BI.createWidget({ BI.createWidget({
type: "bi.htape", type: "bi.htape",

Loading…
Cancel
Save