diff options
-rw-r--r-- | js/panels/binding-panel.reel/binding-panel.js | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/js/panels/binding-panel.reel/binding-panel.js b/js/panels/binding-panel.reel/binding-panel.js index 3b20a88f..0641ecf5 100644 --- a/js/panels/binding-panel.reel/binding-panel.js +++ b/js/panels/binding-panel.reel/binding-panel.js | |||
@@ -6,7 +6,6 @@ exports.BindingPanel = Montage.create(Component, { | |||
6 | 6 | ||
7 | bindings : { value: null }, | 7 | bindings : { value: null }, |
8 | editView : { value: null }, | 8 | editView : { value: null }, |
9 | editingClass : { value: 'editing-binding' }, | ||
10 | _editing: { value: null }, | 9 | _editing: { value: null }, |
11 | editing: { | 10 | editing: { |
12 | get: function() { | 11 | get: function() { |
@@ -30,9 +29,21 @@ exports.BindingPanel = Montage.create(Component, { | |||
30 | }, | 29 | }, |
31 | 30 | ||
32 | /* ------------------------- | 31 | /* ------------------------- |
33 | Draw Cycle | 32 | Toolbar Button Actions |
34 | ------------------------- */ | 33 | ------------------------- */ |
35 | 34 | ||
35 | handleAddAction : { | ||
36 | value: function(e) { | ||
37 | var newBindingArgs = { | ||
38 | sourceObject : this.application.ninja.objectsController.currentObject | ||
39 | }; | ||
40 | |||
41 | this.displayEditView(newBindingArgs); | ||
42 | } | ||
43 | }, | ||
44 | |||
45 | |||
46 | |||
36 | templateDidLoad : { | 47 | templateDidLoad : { |
37 | value: function() { | 48 | value: function() { |
38 | Object.defineBinding(this, 'bindings', { | 49 | Object.defineBinding(this, 'bindings', { |
@@ -57,8 +68,10 @@ exports.BindingPanel = Montage.create(Component, { | |||
57 | 68 | ||
58 | if(this.editing) { | 69 | if(this.editing) { |
59 | this.editView.element.style.setProperty(transStr, 'translate3d(-'+ this._translateDistance + 'px,0,0)'); | 70 | this.editView.element.style.setProperty(transStr, 'translate3d(-'+ this._translateDistance + 'px,0,0)'); |
71 | this.editView.element.style.setProperty('box-shadow', '0 0 10px rgba(0,0,0,0.2)') | ||
60 | } else { | 72 | } else { |
61 | this.editView.element.style.removeProperty(transStr); | 73 | this.editView.element.style.removeProperty(transStr); |
74 | this.editView.element.style.removeProperty('box-shadow'); | ||
62 | } | 75 | } |
63 | } | 76 | } |
64 | } | 77 | } |