guy 3 years ago
parent
commit
a70f3a8d61
  1. 5
      src/base/single/button/button.basic.js
  2. 2
      src/base/single/single.js

5
src/base/single/button/button.basic.js

@ -389,11 +389,6 @@ BI.BasicButton = BI.inherit(BI.Single, {
return this.options.text;
},
setValue: function (value) {
BI.BasicButton.superclass.setValue.apply(this, arguments);
this.options.setValue && this.options.setValue.call(this, value);
},
_setEnable: function (enable) {
BI.BasicButton.superclass._setEnable.apply(this, arguments);
if (enable === true) {

2
src/base/single/single.js

@ -192,6 +192,7 @@ BI.Single = BI.inherit(BI.Widget, {
setValue: function (val) {
if (!this.options.readonly) {
this.options.value = val;
this.options.setValue && this.options.setValue(val);
}
},
@ -219,3 +220,4 @@ BI.Single = BI.inherit(BI.Widget, {
BI.Tooltips.remove(this.getName());
}
});
BI.shortcut("bi.single", BI.Single);

Loading…
Cancel
Save