bootstrap-datetimepicker icon indicating copy to clipboard operation
bootstrap-datetimepicker copied to clipboard

patch for both bootstrap 2 and 3 supports

Open zbryikt opened this issue 11 years ago • 3 comments

Current bootstrap-datetimepicker can't work with bootstrap3. bootstrap has changes about input group and glyphicon supports.

Add a detection at initalization about whether bootstrap 2 or 3 style is used; based on that a slightly different html set are used: (in jade format)

// bootstrap 3 .date.datetime.input-group(style="width: 300px;") input(type="text",class="form-control",data-format="dd/MM/yyyy hh:mm:ss") span.input-group-addon.add-on i(data-time-icon="glyphicon-time", data-date-icon="glyphicon-calendar")

// bootstrap 2 .datetime.input-append.date input(data-format="dd/MM/yyyy hh:mm:ss",type="text") span.add-on i(data-time-icon="icon-time",data-date-icon="icon-calendar")

zbryikt avatar Aug 08 '13 14:08 zbryikt

I've fixed the bootstrap v3 issues here: https://github.com/Eonasdan/bootstrap-datetimepicker

Eonasdan avatar Aug 31 '13 17:08 Eonasdan

Is there any chance you will update datetimepicker v3 to use autoclose? I believe having that feature would be more mobile friendly since bootstrap v3 is designed as mobile first.

deadstaggerlee avatar Dec 30 '13 00:12 deadstaggerlee

@deadstaggerlee ”This is project is not currently being maintained". check out my fork. If you're asking for help with my fork, please open a new issue there.

Eonasdan avatar Dec 30 '13 01:12 Eonasdan