aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmen Kesablyan2012-06-25 10:49:23 -0700
committerArmen Kesablyan2012-06-25 10:49:23 -0700
commit7867aec2620b65605180979b5049cfa154ca7dd1 (patch)
treec652fd3cd6a329216f69152adbd4c49e2284df79
parentbb663f4361e1fdb74d440c0e4a98edfcabfcda81 (diff)
downloadninja-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>
-rw-r--r--js/panels/binding/edit-binding-view.reel/edit-binding-view.html11
-rw-r--r--js/panels/binding/edit-binding-view.reel/edit-binding-view.js6
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