|
|
@ -31,11 +31,10 @@ 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 () { |
|
|
|
o.value = BI.parseFloat(this.getValue()); |
|
|
|
|
|
|
|
self.fireEvent(BI.NumberEditor.EVENT_CHANGE); |
|
|
|
self.fireEvent(BI.NumberEditor.EVENT_CHANGE); |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () { |
|
|
|
this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () { |
|
|
|
this.setValue(BI.parseFloat(this.getValue())); |
|
|
|
o.value = BI.parseFloat(this.getValue()); |
|
|
|
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM); |
|
|
|
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM); |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.topBtn = BI.createWidget({ |
|
|
|
this.topBtn = BI.createWidget({ |
|
|
|