Revision 4001,
743 bytes
checked in by rafaelraymundo, 13 years ago
(diff) |
Ticket #1615 - Componente novo para agenda......................................
|
Line | |
---|
1 | scheduler.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.