bootstrap-datetimepicker
bootstrap-datetimepicker copied to clipboard
bootcssVer judgement is not strict
I am using bootstrap 3.
When using element to bind datetimepicker is not input or input group:
this.bootcssVer = options.bootcssVer || (this.isInput ? (this.element.is('.form-control') ? 3 : 2) : ( this.bootcssVer = this.element.is('.input-group') ? 3 : 2 ));
That code will set bootcssVer to 2, not 3.
It cause some style problem:
this.icons = { leftArrow: this.fontAwesome ? 'fa-arrow-left' : (this.bootcssVer === 3 ? 'glyphicon-arrow-left' : 'icon-arrow-left'), rightArrow: this.fontAwesome ? 'fa-arrow-right' : (this.bootcssVer === 3 ? 'glyphicon-arrow-right' : 'icon-arrow-right') }
The style of arrow can not be set to glyphicon.
By force set bootcssVer to 3 can solve this temporary, but hope there has a better way.
Fogive my poor English...