summaryrefslogtreecommitdiffstats
path: root/codebase/sources/ext/dhtmlxscheduler_units.js
diff options
context:
space:
mode:
authorAlexKlimenkov <shurick.klimenkov@gmail.com>2014-11-12 12:31:30 +0300
committerAlexKlimenkov <shurick.klimenkov@gmail.com>2014-11-12 12:31:30 +0300
commitb43931167c3a3229c89608fe0cac8cc6f28db9d5 (patch)
treea21af26a5b6fb026be2210d20263ae820337f99e /codebase/sources/ext/dhtmlxscheduler_units.js
parent18d5b85296811c84235763e3b39eb6f7715e8d19 (diff)
downloadscheduler-b43931167c3a3229c89608fe0cac8cc6f28db9d5.zip
scheduler-b43931167c3a3229c89608fe0cac8cc6f28db9d5.tar.gz
scheduler-b43931167c3a3229c89608fe0cac8cc6f28db9d5.tar.bz2
[update] version 4.2.0
Diffstat (limited to 'codebase/sources/ext/dhtmlxscheduler_units.js')
-rw-r--r--codebase/sources/ext/dhtmlxscheduler_units.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/codebase/sources/ext/dhtmlxscheduler_units.js b/codebase/sources/ext/dhtmlxscheduler_units.js
index c6a94d3..ea095df 100644
--- a/codebase/sources/ext/dhtmlxscheduler_units.js
+++ b/codebase/sources/ext/dhtmlxscheduler_units.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.
@@ -115,7 +115,7 @@ scheduler.scrollUnit=function(step){
var pr = scheduler._props[this._mode];
if (pr){
pr.position=Math.min(Math.max(0,pr.position+step),pr.options.length-pr.size);
- this.update_view();
+ this.setCurrentView();
}
};
(function(){
@@ -212,10 +212,15 @@ scheduler.scrollUnit=function(step){
var pr = scheduler._props[this._mode];
if (pr){
fix_und(pr,ev);
- return pr.order[ev[pr.map_to]]-pr.position;
+ return this._get_section_sday(ev[pr.map_to]);
}
return r.call(this,ev);
};
+ scheduler._get_section_sday = function(section){
+ var pr = scheduler._props[this._mode];
+ return pr.order[section]-pr.position;
+ };
+
var l = scheduler.locate_holder_day;
scheduler.locate_holder_day=function(a,b,ev){
var pr = scheduler._props[this._mode];