jonleighton / date_input Goto Github PK
View Code? Open in Web Editor NEWDate Input is a no frills date picker plugin for jQuery
License: MIT License
Date Input is a no frills date picker plugin for jQuery
License: MIT License
Find out all you need to know at: http://jonathanleighton.com/projects/date-input
When trying to use date_input inside of an already repositioned div, the calendar would not place itself in the correct position relative to the input field.
I don't know if this is the correct place to post this, but I fixed the problem by changing:
setPosition: function() {
var offset = this.input.offset();
to:
setPosition: function() {
var offset = this.input.position();
This fixed the problem with repositioned DIVs and does not seem to break it if the call is from a non-repositioned DIV.
Change this line:
$("td[date=" + this.dateToString(new Date()) + "]", this.tbody).addClass("today");
to:
$("td[date='" + this.dateToString(new Date()) + "']", this.tbody).addClass("today");
and
$("td[date='" + this.selectedDateString + "']", this.tbody).addClass("selected");
Not really a bug, but I'm new to this repository thing and couldnt find how to share my update.
I have been developing an ecommerce site that you can choose your delivery date. Most of the year they don't do deliveries on a Sunday but on specific Sundays they do. So these are the mods I made (line numbers reffer to packed code):
line 52: insert non_selec_override: [],
line 73: add &&(this.indexFor(this.non_selec_override,this.dateToString(date))===false) to the end of the isHoliday function
Usage: non_selec_override: ["YYYY-mm-dd"] - just like the non_selectable array
January in no_NO should be 'januar', not 'janaur'. I created a fork as advised, but feels so silly for a small change like this. Also, Norwegian months don't really have the first letter capitalized. Anyway, hope it helps!
how can i change date formats?
thanks...
https://www.jonathanleighton.com/projects/date-input/ has http calls to google and gitlab which just need to have 's' added to the http reference.
Attempts to load https://www.jonathanleighton.com (no 's') are redirected to the HTTPS version
i have meet two bugs:
have no idea..
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.