aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js38
1 files changed, 37 insertions, 1 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index 5e64c066..cb133f58 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -137,10 +137,33 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
137 } 137 }
138 }, 138 },
139 139
140 millisecondsOffset:{ 140 _millisecondsOffset:{
141 value:1000 141 value:1000
142 }, 142 },
143 143
144 millisecondsOffset:{
145 get:function () {
146 return this._millisecondsOffset;
147 },
148 set:function (newVal) {
149 if (newVal !== this._millisecondsOffset) {
150 this._millisecondsOffset= newVal;
151 this.drawTimeMarkers();
152 NJevent('tlZoomSlider',this);
153 }
154 }
155 },
156
157 tweenarray:{
158 value:[],
159 writable:true
160 },
161
162 tempArray:{
163 value:[],
164 writable:true
165 },
166
144 _masterDuration:{ 167 _masterDuration:{
145 serializable:true, 168 serializable:true,
146 value:0 169 value:0
@@ -487,6 +510,14 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
487 } 510 }
488 // Feed the new array of objects into the repetitions. 511 // Feed the new array of objects into the repetitions.
489 this.arrLayers = this.temparrLayers; 512 this.arrLayers = this.temparrLayers;
513 }else if(this.application.ninja.breadCrumbClick){
514 var parentNode = this.application.ninja.currentSelectedContainer;
515 for (myIndex = 0; parentNode.children[myIndex]; myIndex++) {
516 this._openDoc = true;
517 this.restoreLayer(parentNode.children[myIndex]);
518 }
519 this.arrLayers = this.temparrLayers;
520
490 } 521 }
491 522
492 // After recreating the tracks and layers, store the result in the currentDocument. 523 // After recreating the tracks and layers, store the result in the currentDocument.
@@ -770,6 +801,11 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
770 drawTimeMarkers:{ 801 drawTimeMarkers:{
771 value:function () { 802 value:function () {
772 this.timeMarkerHolder = document.createElement("div"); 803 this.timeMarkerHolder = document.createElement("div");
804
805 if(this.time_markers.children[0]){
806 this.time_markers.removeChild(this.time_markers.children[0]);
807 }
808
773 this.time_markers.appendChild(this.timeMarkerHolder); 809 this.time_markers.appendChild(this.timeMarkerHolder);
774 var i; 810 var i;
775 var totalMarkers = Math.floor(this.time_markers.offsetWidth / 80); 811 var totalMarkers = Math.floor(this.time_markers.offsetWidth / 80);