pauladaniel / calendardateselect

Automatically exported from code.google.com/p/calendardateselect
Other
0 stars 0 forks source link

Feature Request - Ability to clear a selected date in the embedded calendar #75

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Great calendar!

Would it be possible to add the functionality of clearing the date/time after 
you have selected them? 
For example, I have a "due date" field for one of my models, but it is not 
required. If the user 
selects a day but then decides to not assign a due date, there appears to be no 
way of clearing the 
selection when using an embedded calendar. Perhaps a "X" or "Clear" link down 
by the "Now" or 
"Today" links?

Thanks!

Original issue reported on code.google.com by robertwi...@gmail.com on 9 Jan 2008 at 6:16

GoogleCodeExporter commented 8 years ago

Original comment by timchar...@gmail.com on 28 Feb 2008 at 9:50

GoogleCodeExporter commented 8 years ago

Original comment by timchar...@gmail.com on 28 Feb 2008 at 9:51

GoogleCodeExporter commented 8 years ago
I'm not sure where to add this -- but I seriously need this feature, also, and 
posted
a similar rq in the wiki (hope that's ok).

Original comment by craigbsp...@gmail.com on 16 Mar 2008 at 6:08

GoogleCodeExporter commented 8 years ago
Here is a simple patch. It adds the Clear link at the footer.

It might not work on some cases that I haven't tried. But it works fine on the
default pop up calendar.

Original comment by htanata on 20 Aug 2008 at 5:50

Attachments:

GoogleCodeExporter commented 8 years ago
Oops, I missed out the *embedded* word all the time.

For Clear button feature on both pop up and embedded calendar, you can pull
http://github.com/htanata/calendar_date_select/commit/9fc02986e4d9ba741004313492
2fce167933829f
and
http://github.com/htanata/calendar_date_select/commit/165d0604100f98dc8453c9c64e
4b833e41cd7534
 or apply the attached patch.

The Clear button is shown by default. To remove it, add ":clear_button => 
false" to
options.

Original comment by htanata on 26 Aug 2008 at 9:47

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by timchar...@gmail.com on 30 Nov 2008 at 8:18