Browse Source

update

master
windy 7 years ago
parent
commit
6e2f284428
  1. 12
      bi/widget.js
  2. 12
      dist/bundle.js
  3. 4
      dist/bundle.min.js
  4. 12
      dist/widget.js
  5. 12
      src/widget/singleslider/singleslider.js

12
bi/widget.js

@ -17305,7 +17305,17 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
},
_checkValidation: function (v) {
return BI.isNumeric(v) && !(BI.isNull(v) || v < this.min || v > this.max)
var o = this.options;
var valid = false;
if (BI.isNumeric(v) && !(BI.isNull(v) || v < this.min || v > this.max)) {
if(o.digit === false){
valid = true;
}else{
var dotText = (v + "").split(".")[1] || "";
valid = (dotText.length === o.digit);
}
}
return valid;
},
_setBlueTrack: function (percent) {

12
dist/bundle.js vendored

@ -92497,7 +92497,17 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
},
_checkValidation: function (v) {
return BI.isNumeric(v) && !(BI.isNull(v) || v < this.min || v > this.max)
var o = this.options;
var valid = false;
if (BI.isNumeric(v) && !(BI.isNull(v) || v < this.min || v > this.max)) {
if(o.digit === false){
valid = true;
}else{
var dotText = (v + "").split(".")[1] || "";
valid = (dotText.length === o.digit);
}
}
return valid;
},
_setBlueTrack: function (percent) {

4
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

12
dist/widget.js vendored

@ -17305,7 +17305,17 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
},
_checkValidation: function (v) {
return BI.isNumeric(v) && !(BI.isNull(v) || v < this.min || v > this.max)
var o = this.options;
var valid = false;
if (BI.isNumeric(v) && !(BI.isNull(v) || v < this.min || v > this.max)) {
if(o.digit === false){
valid = true;
}else{
var dotText = (v + "").split(".")[1] || "";
valid = (dotText.length === o.digit);
}
}
return valid;
},
_setBlueTrack: function (percent) {

12
src/widget/singleslider/singleslider.js

@ -225,7 +225,17 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
},
_checkValidation: function (v) {
return BI.isNumeric(v) && !(BI.isNull(v) || v < this.min || v > this.max)
var o = this.options;
var valid = false;
if (BI.isNumeric(v) && !(BI.isNull(v) || v < this.min || v > this.max)) {
if(o.digit === false){
valid = true;
}else{
var dotText = (v + "").split(".")[1] || "";
valid = (dotText.length === o.digit);
}
}
return valid;
},
_setBlueTrack: function (percent) {

Loading…
Cancel
Save