Adding reset field button
frankenbike - 11/2/2007 at 02:56 PM
I have my calendar working without problems but I would like to make the field that the calendar inputs into read only. To do this I need to include
an extra button onto the bottom of the calendar pop up that will clear the field of data.
Basically the end purpose is to have the ability to clear the field and enter the data using only a mouse and no keyboard.
Thanks in advance
HansH - 1/22/2009 at 09:31 PM
I had the same problem, used a readonly field with tigra calender and no option to clear the field.
So I adapted the source:
So in short:
- added 8 lines (lines with + on first position)
- added config option 'clearfld' : true or false
If you set it to true it adds a clr.gif image before the previous year image
( I added a small 7x8 image in the image directory)
If you click on it, it will clear the input field and exit the popup.
Have fun with it and thanks for Tigra calender, a really nice and simple calender....
link to my (very small) clr.gif : http://img265.imageshack.us/img265/7876/clrke9.gif
Back to forum: http://www.softcomplex.com/forum/