diff options
author | Armen Kesablyan | 2012-06-25 10:49:23 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-06-25 10:49:23 -0700 |
commit | 7867aec2620b65605180979b5049cfa154ca7dd1 (patch) | |
tree | c652fd3cd6a329216f69152adbd4c49e2284df79 /js/panels | |
parent | bb663f4361e1fdb74d440c0e4a98edfcabfcda81 (diff) | |
download | ninja-7867aec2620b65605180979b5049cfa154ca7dd1.tar.gz |
Binding Panel - Changing direction in edit mode doesn't apply dirty to the edit form
Check/Uncheck the Binding direction (Oneway) check box in the binding setting doesn't enable "SAVE" button.
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/panels')
-rw-r--r-- | js/panels/binding/edit-binding-view.reel/edit-binding-view.html | 11 | ||||
-rw-r--r-- | js/panels/binding/edit-binding-view.reel/edit-binding-view.js | 6 |
2 files changed, 15 insertions, 2 deletions
diff --git a/js/panels/binding/edit-binding-view.reel/edit-binding-view.html b/js/panels/binding/edit-binding-view.reel/edit-binding-view.html index 0bd3cf32..67d06132 100644 --- a/js/panels/binding/edit-binding-view.reel/edit-binding-view.html +++ b/js/panels/binding/edit-binding-view.reel/edit-binding-view.html | |||
@@ -95,11 +95,18 @@ | |||
95 | "directionCheckbox": { | 95 | "directionCheckbox": { |
96 | "prototype": "montage/ui/native/input-checkbox.reel", | 96 | "prototype": "montage/ui/native/input-checkbox.reel", |
97 | "properties": { | 97 | "properties": { |
98 | "element": {"#": "direction-checkbox"} | 98 | "element": {"#": "direction-checkbox"}, |
99 | "identifier": "directionCheckbox" | ||
99 | }, | 100 | }, |
100 | "bindings": { | 101 | "bindings": { |
101 | "checked": {"<-": "@owner.oneway"} | 102 | "checked": {"<-": "@owner.oneway"} |
102 | } | 103 | }, |
104 | "listeners" : [ | ||
105 | { | ||
106 | "type": "action", | ||
107 | "listener": {"@": "owner"} | ||
108 | } | ||
109 | ] | ||
103 | }, | 110 | }, |
104 | "cancelButton" : { | 111 | "cancelButton" : { |
105 | "prototype": "montage/ui/native/button.reel", | 112 | "prototype": "montage/ui/native/button.reel", |
diff --git a/js/panels/binding/edit-binding-view.reel/edit-binding-view.js b/js/panels/binding/edit-binding-view.reel/edit-binding-view.js index 1a7faedd..4b20f74a 100644 --- a/js/panels/binding/edit-binding-view.reel/edit-binding-view.js +++ b/js/panels/binding/edit-binding-view.reel/edit-binding-view.js | |||
@@ -262,6 +262,12 @@ var editBindingView = exports.EditBindingView = Montage.create(Component, { | |||
262 | } | 262 | } |
263 | }, | 263 | }, |
264 | 264 | ||
265 | handleDirectionCheckboxAction : { | ||
266 | value: function(e) { | ||
267 | this.dirty = true; | ||
268 | } | ||
269 | }, | ||
270 | |||
265 | 271 | ||
266 | /* ------------------- | 272 | /* ------------------- |
267 | Dirty handler | 273 | Dirty handler |