js/datetime/timesheet/timesheet.js in rsence-pre-2.3.0.18 vs js/datetime/timesheet/timesheet.js in rsence-pre-2.3.0.19

- old
+ new

@@ -289,11 +289,11 @@ _endTime = _startTime + this.minDuration; this.refreshDragPreview( _startTime, _endTime ); this.dragPreview.bringToFront(); this.dragPreview.show(); if( this.activateEditor( this.dragPreview ) ){ - this.editor.createItem( HVM.clone( this.dragPreview.value ) ); + this.editor.createItem( this.cloneObject( this.dragPreview.value ) ); } else { this.dragPreview.hide(); } }, @@ -373,11 +373,11 @@ if( _dragTime !== this.startDragTime ){ if( _minDistanceSatisfied ){ if( this.activateEditor( this.dragPreview ) ){ // console.log('drag create'); this.dragCreated = true; - this.editor.createItem( HVM.clone( this.dragPreview.value ) ); + this.editor.createItem( this.cloneObject( this.dragPreview.value ) ); return true; } } this.dragCreated = false; } @@ -835,10 +835,10 @@ return; } // optimization that ensures the rect and previous value are different before redrawing var - _valueStr = COMM.Values.encode( this.value ), + _valueStr = this.encodeObject( this.value ), _rectStr = this.rect.toString(), _timeRangeStr = this.options.timeStart+':'+this.options.timeEnd, _shaSum = this._sha.strSHA1( _valueStr+_rectStr+_timeRangeStr ); if( this._prevSum !== _shaSum ){ // the preview timesheet item is hidden when new data arrives (including what it created)