Browse Source

Merge pull request #41 in ~GUY/fineui from ~WINDY/fineui:master to master

* commit 'acff8e52f06fe0911ef4459945144366cf7e76db':
  update
es6
windy 8 years ago
parent
commit
ed74609b5e
  1. 2
      bi/widget.js
  2. 2
      docs/widget.js
  3. 2
      src/widget/date/trigger.date.js

2
bi/widget.js

@ -4959,7 +4959,7 @@ BI.shortcut('bi.date_combo', BI.DateCombo);BI.DateTrigger = BI.inherit(BI.Trigge
self.fireEvent(BI.DateTrigger.EVENT_ERROR); self.fireEvent(BI.DateTrigger.EVENT_ERROR);
}); });
this.editor.on(BI.SignEditor.EVENT_CONFIRM, function () { this.editor.on(BI.SignEditor.EVENT_CONFIRM, function () {
var value = self.editor.getState(); var value = self.editor.getValue();
if (BI.isNotNull(value)) { if (BI.isNotNull(value)) {
self.editor.setState(value); self.editor.setState(value);
} }

2
docs/widget.js

@ -4959,7 +4959,7 @@ BI.shortcut('bi.date_combo', BI.DateCombo);BI.DateTrigger = BI.inherit(BI.Trigge
self.fireEvent(BI.DateTrigger.EVENT_ERROR); self.fireEvent(BI.DateTrigger.EVENT_ERROR);
}); });
this.editor.on(BI.SignEditor.EVENT_CONFIRM, function () { this.editor.on(BI.SignEditor.EVENT_CONFIRM, function () {
var value = self.editor.getState(); var value = self.editor.getValue();
if (BI.isNotNull(value)) { if (BI.isNotNull(value)) {
self.editor.setState(value); self.editor.setState(value);
} }

2
src/widget/date/trigger.date.js

@ -60,7 +60,7 @@ BI.DateTrigger = BI.inherit(BI.Trigger, {
self.fireEvent(BI.DateTrigger.EVENT_ERROR); self.fireEvent(BI.DateTrigger.EVENT_ERROR);
}); });
this.editor.on(BI.SignEditor.EVENT_CONFIRM, function () { this.editor.on(BI.SignEditor.EVENT_CONFIRM, function () {
var value = self.editor.getState(); var value = self.editor.getValue();
if (BI.isNotNull(value)) { if (BI.isNotNull(value)) {
self.editor.setState(value); self.editor.setState(value);
} }

Loading…
Cancel
Save