summaryrefslogtreecommitdiffstats
path: root/codebase/ext/dhtmlxscheduler_active_links.js
diff options
context:
space:
mode:
Diffstat (limited to 'codebase/ext/dhtmlxscheduler_active_links.js')
-rw-r--r--codebase/ext/dhtmlxscheduler_active_links.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/codebase/ext/dhtmlxscheduler_active_links.js b/codebase/ext/dhtmlxscheduler_active_links.js
new file mode 100644
index 0000000..dac5ab0
--- /dev/null
+++ b/codebase/ext/dhtmlxscheduler_active_links.js
@@ -0,0 +1,7 @@
+/*
+This software is allowed to use under GPL or you need to obtain Commercial or Enterise License
+to use it in non-GPL project. Please contact sales@dhtmlx.com for details
+*/
+scheduler.config.active_link_view="day";
+scheduler.attachEvent("onTemplatesReady",function(){var d=scheduler.date.str_to_date(scheduler.config.api_date),b=scheduler.date.date_to_str(scheduler.config.api_date),e=scheduler.templates.month_day;scheduler.templates.month_day=function(a){return"<a jump_to='"+b(a)+"' href='#'>"+e(a)+"</a>"};var f=scheduler.templates.week_scale_date;scheduler.templates.week_scale_date=function(a){return"<a jump_to='"+b(a)+"' href='#'>"+f(a)+"</a>"};dhtmlxEvent(this._obj,"click",function(a){var b=a.target||event.srcElement,
+c=b.getAttribute("jump_to");if(c)return scheduler.setCurrentView(d(c),scheduler.config.active_link_view),a&&a.preventDefault&&a.preventDefault(),!1})});