aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
diff options
context:
space:
mode:
authorKruti Shah2012-04-04 10:54:29 -0700
committerKruti Shah2012-04-04 10:54:29 -0700
commit59de13ed9f88497b07b4fdcf4d2c9d5c2bf05365 (patch)
tree5beefbd3837c23c21d2fe1d463e5fb2e467ce8a7 /js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
parent1ca98c8c69ea3ef28e8bc050326306424824296d (diff)
downloadninja-59de13ed9f88497b07b4fdcf4d2c9d5c2bf05365.tar.gz
Timeline: Saving layername
Signed-off-by: Kruti Shah <kruti.shah@motorola.com>
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index c454130c..0ca4800d 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -747,6 +747,10 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
747 747
748 this.currentLayerNumber = this.currentLayerNumber + 1; 748 this.currentLayerNumber = this.currentLayerNumber + 1;
749 newLayerName = "Layer " + this.currentLayerNumber; 749 newLayerName = "Layer " + this.currentLayerNumber;
750
751 if(ele.dataset.storedLayerName){
752 newLayerName = ele.dataset.storedLayerName;
753 }
750 thingToPush.layerData.layerName = newLayerName; 754 thingToPush.layerData.layerName = newLayerName;
751 thingToPush.layerData.layerID = this.currentLayerNumber; 755 thingToPush.layerData.layerID = this.currentLayerNumber;
752 thingToPush.parentElementUUID = this.hashKey; 756 thingToPush.parentElementUUID = this.hashKey;
@@ -787,6 +791,7 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
787 value:function() { 791 value:function() {
788 this.createNewLayer(); 792 this.createNewLayer();
789 this.currentLayerSelected.layerData.elementsList.push(this.application.ninja.selectedElements[0]._element); 793 this.currentLayerSelected.layerData.elementsList.push(this.application.ninja.selectedElements[0]._element);
794 this.currentLayerSelected.layerData.elementsList[0].dataset.storedLayerName = this.currentLayerSelected.layerData.layerName;
790 } 795 }
791 }, 796 },
792 797