aymkdn / datepicker-for-bootstrap Goto Github PK
View Code? Open in Web Editor NEWa datepicker in javascript using the Bootstrap design
a datepicker in javascript using the Bootstrap design
In your homepage, in the second example, when I type in 01/23/2011, the year gets wrongly interpreted as 4011.
Hi I found a minor bug the variable "html" should be initialized with "var"
Line 142 at bootstrap-datepicker.js
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.
Any plan for a Date and/or Time picker like in JSCal2 (http://www.dynarch.com/projects/calendar/) ?
Open the demo page (http://aymkdn.github.com/Datepicker-for-Bootstrap/) in IE8. When a datepicker is displayed, clicking the arrows for prev/next months or clicking the month name causes the datepicker to close.
.
Is it possible to make datepicker not floating (like jQuery-ui-datepicker when applied to div instead of input)?
I'd like to include it to my Bootstrap Editable lib (https://github.com/vitalets/bootstrap-editable), but in current state datepicker conflicts with floating popover.
thanks!
As title said, it's great if datepicker can support i18n.
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();
},
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.
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?
Is there a way to internationalize this script? Month names, week names...
Thank you!
The steps to reproduce problems:
Output:
November Dates
Expected Result:
January Dates in the following year
The steps to reproduce problems:
Output:
Date between February and March
Expected Result:
December Dates in the previous year
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';
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.