diff options
Diffstat (limited to 'js/panels/Timeline/Layer.reel/Layer.js')
-rw-r--r-- | js/panels/Timeline/Layer.reel/Layer.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/js/panels/Timeline/Layer.reel/Layer.js b/js/panels/Timeline/Layer.reel/Layer.js index 4b7fe24c..679b88f3 100644 --- a/js/panels/Timeline/Layer.reel/Layer.js +++ b/js/panels/Timeline/Layer.reel/Layer.js | |||
@@ -484,9 +484,16 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
484 | // Make it editable! | 484 | // Make it editable! |
485 | this._layerEditable = Hintable.create(); | 485 | this._layerEditable = Hintable.create(); |
486 | this._layerEditable.element = this.titleSelector; | 486 | this._layerEditable.element = this.titleSelector; |
487 | this._layerEditable.addEventListener("blur", this.handleSelectorEditableBlur.bind(this), false); | 487 | this.titleSelector.identifier = "selectorEditable"; |
488 | this._layerEditable.addEventListener("change", this.handleSelectorEditableChange.bind(this), false); | 488 | this.titleSelector.addEventListener("click", this, false); |
489 | 489 | this._layerEditable.addEventListener("blur", function(event) { | |
490 | that.handleSelectorEditableBlur(event); | ||
491 | }, false); | ||
492 | this._layerEditable.addEventListener("change", function(event) { | ||
493 | that.dynamicLayerName.value = that._layerEditable.value; | ||
494 | this.application.ninja.timeline.currentLayerSelected.layerData.elementsList[0].dataset.storedLayerName = that.dynamicLayerName.value | ||
495 | that.needsDraw = true; | ||
496 | }, false); | ||
490 | this._layerEditable.editingClass = "editable2"; | 497 | this._layerEditable.editingClass = "editable2"; |
491 | this._layerEditable.value = this.layerName; | 498 | this._layerEditable.value = this.layerName; |
492 | //this._layerEditable.needsDraw = true; | 499 | //this._layerEditable.needsDraw = true; |