aboutsummaryrefslogtreecommitdiff
path: root/js/panels/binding/edit-binding-view.reel/edit-binding-view.html
diff options
context:
space:
mode:
authorEric Guzman2012-06-11 07:19:19 -0700
committerEric Guzman2012-06-11 07:19:19 -0700
commit47d45e16bee15fd9f1f793a0bad3b93ad1b985fc (patch)
tree78c700c6a18b924674b5be302a2d5d00ee27baf7 /js/panels/binding/edit-binding-view.reel/edit-binding-view.html
parent7b5b65fc9183026633d97c310cbe6500082be8dd (diff)
downloadninja-47d45e16bee15fd9f1f793a0bad3b93ad1b985fc.tar.gz
Edit View - Add buttons and calls controller (saves bindings)
Diffstat (limited to 'js/panels/binding/edit-binding-view.reel/edit-binding-view.html')
-rw-r--r--js/panels/binding/edit-binding-view.reel/edit-binding-view.html44
1 files changed, 39 insertions, 5 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 d07f4445..604d4871 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
@@ -18,7 +18,10 @@
18 "boundObjectField" : {"@": "boundObjectField" }, 18 "boundObjectField" : {"@": "boundObjectField" },
19 "sourceObjectPropertyPathField" : {"@": "sourceObjectPropertyPathField" }, 19 "sourceObjectPropertyPathField" : {"@": "sourceObjectPropertyPathField" },
20 "boundObjectPropertyPathField" : {"@": "boundObjectPropertyPathField" }, 20 "boundObjectPropertyPathField" : {"@": "boundObjectPropertyPathField" },
21 "directionCheckbox" : {"@": "directionCheckbox" } 21 "directionCheckbox" : {"@": "directionCheckbox" },
22 "saveButton":{ "@": "saveButton" },
23 "cancelButton":{ "@": "cancelButton" },
24 "deleteButton":{ "@": "deleteButton" }
22 } 25 }
23 }, 26 },
24 "sourceObjectField": { 27 "sourceObjectField": {
@@ -96,11 +99,40 @@
96 "checked": {"<-": "@owner.oneway"} 99 "checked": {"<-": "@owner.oneway"}
97 } 100 }
98 }, 101 },
99 "closeButton" : { 102 "cancelButton" : {
100 "prototype": "montage/ui/button.reel", 103 "prototype": "montage/ui/button.reel",
101 "properties": { 104 "properties": {
102 "element": {"#": "close-button" }, 105 "element": {"#": "cancel-button" },
103 "identifier": "closeButton" 106 "identifier": "cancelButton"
107 },
108 "listeners": [
109 {
110 "type": "action",
111 "listener": {"@": "owner" }
112 }
113 ]
114 },
115 "deleteButton" : {
116 "prototype": "montage/ui/button.reel",
117 "properties": {
118 "element": {"#": "delete-button" },
119 "identifier": "deleteButton"
120 },
121 "listeners": [
122 {
123 "type": "action",
124 "listener": {"@": "owner" }
125 }
126 ]
127 },
128 "saveButton" : {
129 "prototype": "montage/ui/button.reel",
130 "properties": {
131 "element": {"#": "save-button" },
132 "identifier": "saveButton"
133 },
134 "bindings" : {
135 "enabled": {"<<->": "@owner.dirty"}
104 }, 136 },
105 "listeners": [ 137 "listeners": [
106 { 138 {
@@ -139,7 +171,9 @@
139 </li> 171 </li>
140 </ul> 172 </ul>
141 173
142 <button data-montage-id="close-button" class="nj-skinned">Close</button> 174 <button data-montage-id="delete-button" class="nj-skinned .btn-delete">Delete</button>
175 <button data-montage-id="cancel-button" class="nj-skinned">Cancel</button>
176 <button data-montage-id="save-button" class="nj-skinned">Save</button>
143 177
144</div> 178</div>
145</body> 179</body>