Skip to content
This repository has been archived by the owner on Dec 15, 2017. It is now read-only.

patch for both bootstrap 2 and 3 supports #192

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zbryikt
Copy link

@zbryikt zbryikt commented Aug 8, 2013

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")

@Eonasdan
Copy link

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

@deadstaggerlee
Copy link

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.

@Eonasdan
Copy link

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants