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

Add option 'select day' #29

Closed
micrum opened this issue Jul 25, 2014 · 4 comments
Closed

Add option 'select day' #29

micrum opened this issue Jul 25, 2014 · 4 comments

Comments

@micrum
Copy link

micrum commented Jul 25, 2014

Было бы здорово добавить опцию 'select day' (по аналогии с select_month и select_year), например, для случая, когда нужно выбирать только год и месяц

@nazar-pc
Copy link
Owner

I'll try to add it, but if you did it earlier - pull request are welcomed!

@micrum
Copy link
Author

micrum commented Jul 26, 2014

Sorry, I have no time and ideas for pull request.
In my project I'm provide this hack:

  # extract string with formatted date from plugin elements
  setDate: ($input) ->
    $monthButton = $('.pmu-months .pmu-button')
    $.each $monthButton, (i, button) ->
      $button = $(button)
      $button.click  ->
        month = $(this).text()
        year = $('.pmu-month.pmu-button').text()
        formattedDate = month + ' ' + year
        $input.val(formattedDate)

nazar-pc added a commit that referenced this issue Aug 23, 2014
* current date highlighting in range mode
* new option `select_day` (also `select_month` no longer depends on `select_year`), fixes [#29](#29)
* account min/max options in months and years views
* huge refactoring and fixes for various found small bugs
@nazar-pc
Copy link
Owner

Fixed in 41a3e95, will be released soon.

P.S. You can't imagine how much time I spent to make it working properly. Hope it worth that.

@micrum
Copy link
Author

micrum commented Sep 1, 2014

Thank you very much!

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

No branches or pull requests

2 participants