diff options
author | AlexKlimenkov <shurick.klimenkov@gmail.com> | 2014-11-12 12:31:30 +0300 |
---|---|---|
committer | AlexKlimenkov <shurick.klimenkov@gmail.com> | 2014-11-12 12:31:30 +0300 |
commit | b43931167c3a3229c89608fe0cac8cc6f28db9d5 (patch) | |
tree | a21af26a5b6fb026be2210d20263ae820337f99e /codebase/sources/ext/dhtmlxscheduler_minical.js | |
parent | 18d5b85296811c84235763e3b39eb6f7715e8d19 (diff) | |
download | scheduler-b43931167c3a3229c89608fe0cac8cc6f28db9d5.zip scheduler-b43931167c3a3229c89608fe0cac8cc6f28db9d5.tar.gz scheduler-b43931167c3a3229c89608fe0cac8cc6f28db9d5.tar.bz2 |
[update] version 4.2.0
Diffstat (limited to 'codebase/sources/ext/dhtmlxscheduler_minical.js')
-rw-r--r-- | codebase/sources/ext/dhtmlxscheduler_minical.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/codebase/sources/ext/dhtmlxscheduler_minical.js b/codebase/sources/ext/dhtmlxscheduler_minical.js index 262c7cb..7038540 100644 --- a/codebase/sources/ext/dhtmlxscheduler_minical.js +++ b/codebase/sources/ext/dhtmlxscheduler_minical.js @@ -1,5 +1,5 @@ /* -dhtmlxScheduler v.4.1.0 Stardard +dhtmlxScheduler v.4.2.0 Stardard This software is covered by GPL license. You also can obtain Commercial or Enterprise license to use it in non-GPL project - please contact sales@dhtmlx.com. Usage without proper license is prohibited. @@ -87,6 +87,12 @@ scheduler.renderCalendar = function(obj, _prev, is_refresh) { if (obj.sync && !is_refresh) this._synced_minicalendars.push(cal); + if(!cal.conf._on_xle_handler){ + cal.conf._on_xle_handler = scheduler.attachEvent("onXLE", function refreshOnLoad(){ + scheduler.updateCalendar(cal, cal.conf.date); + }); + } + return cal; }; scheduler._get_def_cont = function(pos) { @@ -272,6 +278,9 @@ scheduler.destroyCalendar = function(cal, force) { cal.parentNode.removeChild(cal); if (this._def_count) this._def_count.style.top = "-1000px"; + + if(cal.conf && cal.conf._on_xle_handler) + scheduler.detachEvent(cal.conf._on_xle_handler); }; scheduler.isCalendarVisible = function() { if (this._def_count && parseInt(this._def_count.style.top, 10) > 0) |