aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel
diff options
context:
space:
mode:
authorKruti Shah2012-07-20 14:23:03 -0700
committerKruti Shah2012-07-20 14:23:03 -0700
commit2805065a1f61241f25e1cf0d336dbb77d7e1dc01 (patch)
tree2dde1fc2ab06c3f13df58e53c4c3fa1d3131f41b /js/panels/Timeline/TimelinePanel.reel
parent4436c04c81e0f372b7e03416a2515630de8c72c6 (diff)
downloadninja-2805065a1f61241f25e1cf0d336dbb77d7e1dc01.tar.gz
The zoom slider resets.Commented some code
Signed-off-by: Kruti Shah <kruti.shah@motorola.com>
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js19
1 files changed, 14 insertions, 5 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index e037cccb..7581d15a 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -1130,9 +1130,13 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
1130 this.currentLayersSelected = this.application.ninja.currentDocument.tlCurrentLayersSelected; 1130 this.currentLayersSelected = this.application.ninja.currentDocument.tlCurrentLayersSelected;
1131 this.currentElementsSelected = this.application.ninja.currentDocument.tlCurrentElementsSelected; 1131 this.currentElementsSelected = this.application.ninja.currentDocument.tlCurrentElementsSelected;
1132 this._currentDocumentUuid = this.application.ninja.currentDocument.uuid; 1132 this._currentDocumentUuid = this.application.ninja.currentDocument.uuid;
1133 this.millisecondsOffset = this.application.ninja.currentDocument.tlZoomSliderValue ; 1133// if(this.application.ninja.currentDocument.tlZoomSliderValue){
1134 this.zoom_slider.value = this.application.ninja.currentDocument.tlZoomSliderValue; 1134// this.millisecondsOffset = this.application.ninja.currentDocument.tlZoomSliderValue ;
1135 1135// if(this.zoom_slider){
1136// this.zoom_slider.value = this.application.ninja.currentDocument.tlZoomSliderValue;
1137// }
1138//
1139// }
1136 // Are we only showing animated layers? 1140 // Are we only showing animated layers?
1137 if (this.application.ninja.currentDocument.boolShowOnlyAnimated) { 1141 if (this.application.ninja.currentDocument.boolShowOnlyAnimated) {
1138 // Fake a click. 1142 // Fake a click.
@@ -1707,7 +1711,7 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
1707 zoomTrackContainerWidthChange:{ 1711 zoomTrackContainerWidthChange:{
1708 value:function () { 1712 value:function () {
1709 1713
1710 if(this.application.ninja.currentDocument){ 1714 if(this.application.ninja.currentDocument && this.zoomValue){
1711 this.application.ninja.currentDocument.tlZoomSliderValue = this.zoomValue; 1715 this.application.ninja.currentDocument.tlZoomSliderValue = this.zoomValue;
1712 1716
1713 } 1717 }
@@ -1923,7 +1927,12 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
1923 1927
1924 handleElementsRemoved:{ 1928 handleElementsRemoved:{
1925 value:function (event) { 1929 value:function (event) {
1926 this.deleteLayers(event.detail); 1930
1931 if(typeof(event.detail.length) === "undefined"){
1932 this.deleteLayers([event.detail]);
1933 }else{
1934 this.deleteLayers(event.detail);
1935 }
1927 } 1936 }
1928 }, 1937 },
1929 1938