Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

default_date в multiple #121

Closed
djAlba opened this issue Aug 3, 2016 · 9 comments
Closed

default_date в multiple #121

djAlba opened this issue Aug 3, 2016 · 9 comments
Labels

Comments

@djAlba
Copy link

djAlba commented Aug 3, 2016

$("#cal_").pickmeup({format: 'Y-m-d', mode: 'multiple', default_date: false, separator: ','});

есть элемент input, не могу добиться, чтобы при открытии календаря не выбиралась по-умолчанию сегодняшняя дата. приходится выбирать даты, потом "отжимать" текущую дату. вроде-же было заявлено, что пофиксено?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@nazar-pc
Copy link
Owner

nazar-pc commented Aug 3, 2016

@djAlba
Copy link
Author

djAlba commented Aug 4, 2016

example is here: https://partytown.ru/pickmeup.php
if i click on input, calendar is displayed, and today is selected "by default". when i click any day, in input shows two dates - today and selected

@nazar-pc
Copy link
Owner

nazar-pc commented Aug 5, 2016

Because it is multiple mode, it selects 1, 2, 3, 4... any number of dates.
What did you expected?

@djAlba
Copy link
Author

djAlba commented Aug 5, 2016

For example, i want to select all saturdays in next month (3.09, 10.09, 17.09, 24.09).
i click to input, calendar opens, i click on ">" to change month to september, and begins to click on saturdays. when i select first day (3 september), in input displayed "2016-08-05,2016-09-03" - today date and my selected day.
in config - "default_date: false"

@nazar-pc
Copy link
Owner

nazar-pc commented Aug 5, 2016

OK, then once again: https://github.com/nazar-pc/PickMeUp#contribution
Prepare standalone simple demo first and I'll take a look at it.

@djAlba
Copy link
Author

djAlba commented Aug 18, 2016

my example: https://jsfiddle.net/ws8a8ffy/

@djAlba djAlba closed this as completed Aug 29, 2016
@djAlba djAlba reopened this Aug 29, 2016
@djAlba
Copy link
Author

djAlba commented Aug 29, 2016

any ideas?

@nazar-pc nazar-pc added bug and removed question labels Aug 29, 2016
@nazar-pc
Copy link
Owner

Confirmed to be a bug, will work on it.

@nazar-pc
Copy link
Owner

Your example is not exactly correct as for what you want you have to also specify empty array of dates so that nothing is selected by default (default_date only affects value in `), but there was also a problem in PickMeUp itself, which should now be fixes.
So correct example I believe would be this (uses current master branch code): https://jsfiddle.net/ws8a8ffy/1/

There was a lot of changes recently, test it thoroughly from master branch before I release new version. New version will also address some other significant issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants