source: sandbox/2.3-MailArchiver/calendar/js/dhtmlx/sources/ext/ext_active_links.js @ 6779

Revision 6779, 743 bytes checked in by rafaelraymundo, 12 years ago (diff)

Ticket #2946 - Liberado Expresso(branch 2.3) integrado ao MailArchiver?.

Line 
1scheduler.attachEvent("onTemplatesReady",function(){
2        var s_d = scheduler.date.str_to_date(scheduler.config.api_date);
3        var d_s = scheduler.date.date_to_str(scheduler.config.api_date);
4       
5        var month_x = scheduler.templates.month_day;
6        scheduler.templates.month_day=function(date){
7                return "<a jump_to='"+d_s(date)+"' href='#'>"+month_x(date)+"</a>";
8        }
9        var week_x = scheduler.templates.week_scale_date;
10        scheduler.templates.week_scale_date=function(date){
11                return "<a jump_to='"+d_s(date)+"' href='#'>"+week_x(date)+"</a>";
12        }
13       
14       
15        dhtmlxEvent(this._obj,"click",function(e){
16                var start = e.target || event.srcElement;
17                var to = start.getAttribute("jump_to");
18                if (to)
19                        scheduler.setCurrentView(s_d(to),"day");
20        })
21})
Note: See TracBrowser for help on using the repository browser.