Commit e71c33284d30e7424ec26c2ff1fbc4ccc7d4c400
1 parent
037d8ec8
selection controllet and card update
Showing
2 changed files
with
9 additions
and
9 deletions
controllets/create-card-controllet/create-card-controllet.html
@@ -202,7 +202,7 @@ | @@ -202,7 +202,7 @@ | ||
202 | 202 | ||
203 | <div class="vertical layout" style="width: 40%;"> | 203 | <div class="vertical layout" style="width: 40%;"> |
204 | 204 | ||
205 | - <paper-fab mini icon="add-circle" on-click="_handleFabClick"></paper-fab> | 205 | + <paper-fab mini icon="add-circle" on-click="_handleAddClick"></paper-fab> |
206 | 206 | ||
207 | <div id="card_preview"></div> | 207 | <div id="card_preview"></div> |
208 | </div> | 208 | </div> |
@@ -258,8 +258,8 @@ | @@ -258,8 +258,8 @@ | ||
258 | return (type == check); | 258 | return (type == check); |
259 | }, | 259 | }, |
260 | 260 | ||
261 | - _handleFabClick: function(e){ | ||
262 | - this.fire('create-card-controllet_button-clicked', {data : this}); | 261 | + _handleAddClick: function(e){ |
262 | + this.fire('create-card-controllet_add-clicked', {data : this}); | ||
263 | }, | 263 | }, |
264 | 264 | ||
265 | _valueChanged: function(oldvalue, newValue) { | 265 | _valueChanged: function(oldvalue, newValue) { |
controllets/paper-card-controllet/paper-card-controllet.html
@@ -95,25 +95,25 @@ | @@ -95,25 +95,25 @@ | ||
95 | 95 | ||
96 | <template is="dom-if" if="{{checkType(type, 'text')}}"> | 96 | <template is="dom-if" if="{{checkType(type, 'text')}}"> |
97 | 97 | ||
98 | - <paper-fab mini icon="create" on-click="_handleFabClick"></paper-fab> | 98 | + <paper-fab mini icon="create" on-click="_handleDetailsClick"></paper-fab> |
99 | 99 | ||
100 | </template> | 100 | </template> |
101 | 101 | ||
102 | <template is="dom-if" if="{{checkType(type, 'image')}}"> | 102 | <template is="dom-if" if="{{checkType(type, 'image')}}"> |
103 | 103 | ||
104 | - <paper-fab mini icon="perm-media" on-click="_handleFabClick"></paper-fab> | 104 | + <paper-fab mini icon="perm-media" on-click="_handleDetailsClick"></paper-fab> |
105 | 105 | ||
106 | </template> | 106 | </template> |
107 | 107 | ||
108 | <template is="dom-if" if="{{checkType(type, 'datalet')}}"> | 108 | <template is="dom-if" if="{{checkType(type, 'datalet')}}"> |
109 | 109 | ||
110 | - <paper-fab mini icon="assessment" on-click="_handleFabClick"></paper-fab> | 110 | + <paper-fab mini icon="assessment" on-click="_handleDetailsClick"></paper-fab> |
111 | 111 | ||
112 | </template> | 112 | </template> |
113 | 113 | ||
114 | <template is="dom-if" if="{{checkType(type, 'link')}}"> | 114 | <template is="dom-if" if="{{checkType(type, 'link')}}"> |
115 | 115 | ||
116 | - <paper-fab mini icon="link" on-click="_handleFabClick"></paper-fab> | 116 | + <paper-fab mini icon="link" on-click="_handleDetailsClick"></paper-fab> |
117 | 117 | ||
118 | </template> | 118 | </template> |
119 | 119 | ||
@@ -184,8 +184,8 @@ | @@ -184,8 +184,8 @@ | ||
184 | return (type == check); | 184 | return (type == check); |
185 | }, | 185 | }, |
186 | 186 | ||
187 | - _handleFabClick: function(e){ | ||
188 | - this.fire('paper-card-controllet_button-clicked', {data : this}); | 187 | + _handleDetailsClick: function(e){ |
188 | + this.fire('paper-card-controllet_details-clicked', {data : this}); | ||
189 | } | 189 | } |
190 | }) | 190 | }) |
191 | </script> | 191 | </script> |