smalot / bootstrap-datetimepicker

Both Date and Time picker widget based on twitter bootstrap (supports Bootstrap v2 and v3)
http://www.malot.fr/bootstrap-datetimepicker/
Apache License 2.0
3.49k stars 1.65k forks source link

no arrows with certain config #303

Open greg606 opened 10 years ago

greg606 commented 10 years ago

I have this config:

var justDateDatePicker = $('.justdatedatepicker').datetimepicker({
        minView: 2,
        format: 'yyyy-mm-dd',
        autoclose: true
    });

and I noticed it uses different code for arrows: <i class="icon-arrow-left"></i> instead of <span class="glyphicon glyphicon-arrow-left"></span> other datepickers works ok.

kitsunde commented 9 years ago

It's using bootstrap v2 icons. It tries to figure out if the base CSS is v2 or v3 but it depends on your markup. If you use the current version in master and supply bootcssVer: 3 it'll correctly pick glyphicons.

pdagrawal commented 8 years ago

It did happen with me too and I fixed it by changing "icon-arrow-left" to "glyphicon-arrow-left" and same for right icon.