GithubHelp home page GithubHelp logo

datepicker-for-bootstrap's People

Contributors

aymkdn avatar rcdarwin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

datepicker-for-bootstrap's Issues

Bug in interpreting year

In your homepage, in the second example, when I type in 01/23/2011, the year gets wrongly interpreted as 4011.

Not working with Bootstrap 2.2.1?

It seems the new update to Bootstrap 2.2.1 has possibly broken the datepicker..? There are no errors but the calendar doesn't appear when clicked.

It could be my particular way of using the Datepicker. I'm placing the control on a form inside a modal dialog/pop-up. When I swap bootstrap versions to an older one the datepicker works great, but when I put in 2.2.1 it no longer works.

Thanks for any help on this one.

Support i18n

As title said, it's great if datepicker can support i18n.

Tabbing out of the field

I noticed that the picker doesn't close when you tab out of the field. I added one line to the blur method and it seems to do the trick. The blur method now looks like this:

blur:function(e) {
this.picker.hide();
},

Scroll to top

Whenever you click on the input, the browser scrolls to the top of the page if the datepicker popout is already in view. Basically, if the input is in the middle of the page and completely viewable, the browser still scrolls to the top of the page. Truth is, the page should remain where it is without scrolling.

Edit: some more clarification.

October with repeated days

I have a problem here with Bootstrap-datepicker. October always has twice the day 20, regardless of the year.
Something like: 18, 19, 20, 20, 21....

Tested directly in the url http://aymkdn.github.com/Datepicker-for-Bootstrap/. The problem occurs in all browsers (Firefox 13+, I.E., Safari).

In other months everything works fine, the problem only occurs in October.

I'm in Brazil, ie UCT-3: 00.
How to fix this bug?

i18n?

Is there a way to internationalize this script? Month names, week names...

Thank you!

Wrong Previous Month dates in January and Next Month Dates in December

Problem in December

The steps to reproduce problems:

  1. Open the datepicker
  2. Navigate to December Month View
  3. Click one of the next month dates (January)

Output:
November Dates

Expected Result:
January Dates in the following year

Problem in January

The steps to reproduce problems:

  1. Open the datepicker
  2. Navigate to January Month View
  3. Click one of the previous month dates (December)

Output:
Date between February and March

Expected Result:
December Dates in the previous year

Suggested Patch:

Change line 159-163 into this:

if (prevMonth.getFullYear() < year) {
clsName += ' old';
} else if (prevMonth.getFullYear() > year) {
clsName += ' new';
} else if (prevMonth.getMonth() < month) {
clsName += ' old';
} else if (prevMonth.getMonth() > month) {
clsName += ' new';
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.