diff options
author | AlexKlimenkov <shurick.klimenkov@gmail.com> | 2015-02-03 14:29:45 +0300 |
---|---|---|
committer | AlexKlimenkov <shurick.klimenkov@gmail.com> | 2015-02-05 13:25:55 +0300 |
commit | f56a0475d90af025e92ec4716ff4e5121992b4fe (patch) | |
tree | c351eff2ed0b007eafed412a513bbec5fb4c5f91 /codebase/sources/ext/dhtmlxscheduler_expand.js | |
parent | 32504c39dd0183ac30da815e4cf41ac8fa022b99 (diff) | |
download | scheduler-f56a0475d90af025e92ec4716ff4e5121992b4fe.zip scheduler-f56a0475d90af025e92ec4716ff4e5121992b4fe.tar.gz scheduler-f56a0475d90af025e92ec4716ff4e5121992b4fe.tar.bz2 |
[update] version 4.3.0v4.3.0
Diffstat (limited to 'codebase/sources/ext/dhtmlxscheduler_expand.js')
-rw-r--r-- | codebase/sources/ext/dhtmlxscheduler_expand.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/codebase/sources/ext/dhtmlxscheduler_expand.js b/codebase/sources/ext/dhtmlxscheduler_expand.js index 92746f2..b329a1c 100644 --- a/codebase/sources/ext/dhtmlxscheduler_expand.js +++ b/codebase/sources/ext/dhtmlxscheduler_expand.js @@ -1,11 +1,13 @@ /* -dhtmlxScheduler v.4.2.0 Stardard +dhtmlxScheduler v.4.3.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. (c) Dinamenta, UAB. */ scheduler.expand = function() { + if(!scheduler.callEvent("onBeforeExpand", [])) + return; var t = scheduler._obj; do { t._position = t.style.position || ""; @@ -27,8 +29,11 @@ scheduler.expand = function() { document.body._overflow = document.body.style.overflow || ""; document.body.style.overflow = "hidden"; scheduler._maximize(); + scheduler.callEvent("onExpand", []); }; scheduler.collapse = function() { + if(!scheduler.callEvent("onBeforeCollapse", [])) + return; var t = scheduler._obj; do { t.style.position = t._position; @@ -38,6 +43,7 @@ scheduler.collapse = function() { t.style.height = t._height; document.body.style.overflow = document.body._overflow; scheduler._maximize(); + scheduler.callEvent("onCollapse", []); }; scheduler.attachEvent("onTemplatesReady", function() { var t = document.createElement("DIV"); |