Commit e71c33284d30e7424ec26c2ff1fbc4ccc7d4c400

Authored by Luigi Serra
1 parent 037d8ec8

selection controllet and card update

controllets/create-card-controllet/create-card-controllet.html
... ... @@ -202,7 +202,7 @@
202 202  
203 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 207 <div id="card_preview"></div>
208 208 </div>
... ... @@ -258,8 +258,8 @@
258 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 265 _valueChanged: function(oldvalue, newValue) {
... ...
controllets/paper-card-controllet/paper-card-controllet.html
... ... @@ -95,25 +95,25 @@
95 95  
96 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 100 </template>
101 101  
102 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 106 </template>
107 107  
108 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 112 </template>
113 113  
114 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 118 </template>
119 119  
... ... @@ -184,8 +184,8 @@
184 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 191 </script>
... ...