diff options
author | Jonathan Duran | 2012-04-04 10:53:02 -0700 |
---|---|---|
committer | Jonathan Duran | 2012-04-04 10:53:02 -0700 |
commit | 242bdd4f963f35dd1ecdb4e88e6529530217d9ec (patch) | |
tree | d946be1e1f6ce8c6914fde57a7401345174aae7d /js/panels/Timeline/Layer.reel | |
parent | 5ef3b4a58a6a0ca3acc5529b88ccb814b77432e6 (diff) | |
parent | 59de13ed9f88497b07b4fdcf4d2c9d5c2bf05365 (diff) | |
download | ninja-242bdd4f963f35dd1ecdb4e88e6529530217d9ec.tar.gz |
Merge branch 'timeline-k' of github.com:ntfx47/ninja-internal into TimelineUber
Conflicts:
js/panels/Timeline/Layer.reel/Layer.js
Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js/panels/Timeline/Layer.reel')
-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; |