diff options
author | AlexKlimenkov <shurick.klimenkov@gmail.com> | 2014-06-10 20:50:30 +0300 |
---|---|---|
committer | AlexKlimenkov <shurick.klimenkov@gmail.com> | 2014-06-10 20:50:30 +0300 |
commit | b5a0589955460a44c5428c4cb5429fcfce265d23 (patch) | |
tree | 87db58400a3e036de646fb630cbb358beeac3bc1 /sources/ext/dhtmlxscheduler_active_links.js | |
parent | e2aaaef8540fabd0b5200a4959c269d6f1ae352e (diff) | |
download | scheduler-b5a0589955460a44c5428c4cb5429fcfce265d23.zip scheduler-b5a0589955460a44c5428c4cb5429fcfce265d23.tar.gz scheduler-b5a0589955460a44c5428c4cb5429fcfce265d23.tar.bz2 |
[update] version 4.1.0
Diffstat (limited to 'sources/ext/dhtmlxscheduler_active_links.js')
-rw-r--r-- | sources/ext/dhtmlxscheduler_active_links.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/sources/ext/dhtmlxscheduler_active_links.js b/sources/ext/dhtmlxscheduler_active_links.js deleted file mode 100644 index 68786d8..0000000 --- a/sources/ext/dhtmlxscheduler_active_links.js +++ /dev/null @@ -1,28 +0,0 @@ -/* -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 s_d = scheduler.date.str_to_date(scheduler.config.api_date); - var d_s = scheduler.date.date_to_str(scheduler.config.api_date); - - var month_x = scheduler.templates.month_day; - scheduler.templates.month_day = function(date) { - return "<a jump_to='" + d_s(date) + "' href='#'>" + month_x(date) + "</a>"; - }; - var week_x = scheduler.templates.week_scale_date; - scheduler.templates.week_scale_date = function(date) { - return "<a jump_to='" + d_s(date) + "' href='#'>" + week_x(date) + "</a>"; - }; - dhtmlxEvent(this._obj, "click", function(e) { - var start = e.target || event.srcElement; - var to = start.getAttribute("jump_to"); - if (to) { - scheduler.setCurrentView(s_d(to), scheduler.config.active_link_view); - if (e && e.preventDefault) - e.preventDefault(); - return false; - } - }) -});
\ No newline at end of file |