petrkotek / datepicker Goto Github PK
View Code? Open in Web Editor NEWThis project forked from foxrunsoftware/datepicker
jQuery-based DatePicker with support for date ranges, multiple calendars, styling and more
This project forked from foxrunsoftware/datepicker
jQuery-based DatePicker with support for date ranges, multiple calendars, styling and more
When I enter (or change) the dates using standard s, and then click 'ok' button, the correct range is shown on "date-range-field" (and I can work with true dates using $('.pickerContainer.widget').data("DateRangesWidget").options.values), but selected range on the calendar is wrong and the values on these s set in accordance with the calendar.
Hi there,
Thanks for your datepicker, it is awesome!
I have 2 question:
Thanks!
I used daterange widget for my project. especially dialogbox in my project.
But I reviewed those items in your DateRangesWidget.js.
''+
'Custom'+
'Previous period'+
'Previous year'+
''+
But why isn't "previouspeiod"item selected?
I have a problem with two ranges. When i choose first range for ex: 1/4/2013 - 7/4/2013, and comparison range for ex: 15/4/2013 - 21/4/2013, everything is good highlighted as shown in first image.
After that if i try to change dates for ex: 1/4/2013 - 7/4/2013, and set comparison range now to be different from first one for ex: 8/4/2013. All ranges is changed as shown on image 2.
How can i fix this, or where in code i can search about this and to catch the logic used there. Thanks in advance!
Hi Petr,
Thanks again for the great work!
And one easily detectable bug:
If I select preset "Last Year(s)" the wrong year (previous from the last) is defined. Also the "Last Day(s)" preset does not work properly
I am trying to preset the daterange dropdown to today value but it is always showing up custom when i open the datepicker widget.
in createElements function, I am doing this:
internal.setDaterangePreset('today');
But error is shown. How can I do this?
It doesn't show anything when I click the date ranges widget selectbox.
And in the console, there is this error at line 374:
TypeError: date_preset is undefined
Browser: Firefox 27.0.1
Version of the Datepicker: 1.1.0 (although the file itself has 1.0.0
in it).
But the example page works fine under jQuery 1.8.2.
Let me know if you need more info.
Thanks for your plugin!
Julien
line 264 of DateRangesWidget.js you get a console error when you haven't chosen two date ranges. I have added the if statement and the errors are gone. Thanks very much for the library it is great!
if(dates[2]){
$('.dr2.from', $dropdown).val(dates[2].getDate() + '/' + (dates[2].getMonth()+1) + '/' + dates[2].getFullYear());
}
if(dates[3]) {
$('.dr2.to', $dropdown).val(dates[3].getDate() + '/' + (dates[3].getMonth()+1) + '/' + dates[3].getFullYear());
}
after clicking DateRangesWidget select box. I just get error.
Cannot read property 'parameters' of undefined
.
in DateRangesWidget.js this place:
$daterangePreset.change(function() { var date_preset = internal.getDaterangePreset(); if (date_preset.parameters) {.....
Would be great to know if someone already fixed this.
Thanks
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.