Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: disable older dates
jvcoppen
Newbie

Posts: 1
Registered: 9/9/2010
Location: Belgium
Member Is Offline
posted on 9/9/2010 at 12:01 PM Reply With Quote
disable older dates


My solution to disable older dates

regards,
jvcoppen.


in html page call add older_than_disabled:
new tcal ({'controlname':'idname','older_than_disabled':'14-09-2010'});

in calendar.css add (after div#tcal td.selected):
div#tcal td.disabled_days {
font-style: italic;
color: silver;
cursor: auto;
}

in calendar_eu.js add (in function f_tcalUpdate):
(after var d_selected)
var d_older_than_disabled = this.a_cfg.older_than_disabled ? this.f_parseDate(this.a_cfg.older_than_disabled) : '';

(after // selected clause)
// disabled days
if (d_older_than_disabled.valueOf()!='' && d_current.valueOf() < d_older_than_disabled.valueOf()) {
a_class[a_class.length] = 'disabled_days';
s_html += '<td ' + (a_class.length ? ' class="' + a_class.join(' ') + '">' : '>') + n_date + '</td>'
} else {
s_html += '<td onclick="A_TCALS['' + this.s_id + ''].f_hide(' + d_current.valueOf() + ')"' + (a_class.length ? ' class="' + a_class.join(' ') + '">' : '>') + n_date + '</td>'
}

remove: (because it is included in previous bit)
s_html += '<td onclick="A_TCALS['' + this.s_id + ''].f_hide(' + d_current.valueOf() + ')"' + (a_class.length ? ' class="' + a_class.join(' ') + '">' : '>') + n_date + '</td>'
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Tigra Calendar
Product Demonstrations Live Demos
Free Download Free Download
Product Documentation Documentation
Support Forum Support Forum
 
Tigra Calendar PRO
Product Demonstrations Live Demos
Popup Calendar
Onpage Calendar
Modal Calendar
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004