@ -111,8 +111,15 @@ exports.updateHiddenDates = function (body, hiddenDates) {
}
}
exports . removeDuplicates ( body ) ;
//var startHidden = exports.isHidden(body.range.start, body.hiddenDates);
//var endHidden = exports.isHidden(body.range.end,body.hiddenDates);
var startHidden = exports . isHidden ( body . range . start , body . hiddenDates ) ;
var endHidden = exports . isHidden ( body . range . end , body . hiddenDates ) ;
var rangeStart = body . range . start ;
var rangeEnd = body . range . end ;
if ( startHidden . hidden == true ) { rangeStart = startHidden . endDate ; }
if ( endHidden . hidden == true ) { rangeEnd = endHidden . startDate ; }
if ( startHidden . hidden == true || endHidden . hidden == true ) {
body . range . _applyRange ( rangeStart , rangeEnd ) ;
}
}
}
@ -297,7 +304,7 @@ exports.correctTimeForDuration = function(hiddenTimes, range, time) {
/ * *
* Used with zooming and dragging
* Used with zooming and dragging , zoom inverts the left right for the start
*
* @ param hiddenTimes
* @ param range