2
This software is allowed to use under GPL or you need to obtain Commercial or Enterise License
3
to use it in non-GPL project. Please contact sales@dhtmlx.com for details
5
scheduler.config.active_link_view = "day";
6
scheduler.attachEvent("onTemplatesReady", function() {
7
var s_d = scheduler.date.str_to_date(scheduler.config.api_date);
8
var d_s = scheduler.date.date_to_str(scheduler.config.api_date);
10
var month_x = scheduler.templates.month_day;
11
scheduler.templates.month_day = function(date) {
12
return "<a jump_to='" + d_s(date) + "' href='#'>" + month_x(date) + "</a>";
14
var week_x = scheduler.templates.week_scale_date;
15
scheduler.templates.week_scale_date = function(date) {
16
return "<a jump_to='" + d_s(date) + "' href='#'>" + week_x(date) + "</a>";
18
dhtmlxEvent(this._obj, "click", function(e) {
19
var start = e.target || event.srcElement;
20
var to = start.getAttribute("jump_to");
22
scheduler.setCurrentView(s_d(to), scheduler.config.active_link_view);
23
if (e && e.preventDefault)
b'\\ No newline at end of file'