From f036558a70468a8ce0910843e413012f8f779604 Mon Sep 17 00:00:00 2001 From: Kruti Shah Date: Tue, 19 Jun 2012 10:44:12 -0700 Subject: Lock ELements Signed-off-by: Kruti Shah --- js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'js/panels/Timeline') diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js index 1ef57b13..87e7bd2e 100644 --- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js +++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js @@ -1119,6 +1119,17 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { // Deselect selected layers if they're not in arrSelectedIndexes. for (i = 0; i < arrLayersLength; i++) { + + debugger; + if([i]===arrSelectedIndexes){ + if(this.arrLayers[i].layerData.isLock){ + this.arrLayers[i].layerData.isSelected = false; + }else{ + this.arrLayers[i].layerData.isSelected = true; + } + }else{ + this.arrLayers[i].layerData.isSelected = false; + } if (this.arrLayers[i].layerData.isSelected === true) { if (arrSelectedIndexes.indexOf(i) < 0) { -- cgit v1.2.3