Coder Social home page Coder Social logo

petrkotek / datepicker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from foxrunsoftware/datepicker

40.0 40.0 15.0 244 KB

jQuery-based DatePicker with support for date ranges, multiple calendars, styling and more

JavaScript 82.96% CSS 17.04%

datepicker's People

Contributors

fabiosangregorio avatar giobaldac avatar ksykulev avatar ozipi avatar petrkotek 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

datepicker's Issues

Range on the calendar does not depend on input date fields (DateRangesWidget)

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.

Current month as last month on multiple date picker

Hi there,

Thanks for your datepicker, it is awesome!

I have 2 question:

  • How can i disable dates in the future?
  • How can i set the currect month to the last month on the 3 months you get when you want to select dates.

Thanks!

Problem with tworanges.

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

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.

image2

How can i fix this, or where in code i can search about this and to catch the logic used there. Thanks in advance!

setDaterangePreset to today or any other value

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?

DateRangesWidget on jQuery 2.0.x

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

Thanks and a small console error

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());
}

DateRangesWidget on jQuery v2.2.4

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

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.