Commit 17da8e082a6996ae5cfc772aef4de3d69cfb3d39

Authored by Renato De Donato
1 parent 2040d7a3

hidden preview datalet

controllets/items-vslider-controllet/items-vslider-controllet.html
@@ -202,7 +202,8 @@ @@ -202,7 +202,8 @@
202 var datalets = new Array(); 202 var datalets = new Array();
203 for(var i=0; i < e.detail.response.length; i++){ 203 for(var i=0; i < e.detail.response.length; i++){
204 var datalet = { imageName : e.detail.response[i].name.replace("-datalet", ""), imageUrl : e.detail.response[i].url + e.detail.response[i].name + ".png" }; 204 var datalet = { imageName : e.detail.response[i].name.replace("-datalet", ""), imageUrl : e.detail.response[i].url + e.detail.response[i].name + ".png" };
205 - datalets.push(datalet); 205 + if(e.detail.response[i].type != "hidden")
  206 + datalets.push(datalet);
206 } 207 }
207 208
208 this.datalets = datalets; 209 this.datalets = datalets;
datalets/base-datalet/base-datalet.html
@@ -130,11 +130,6 @@ Example : @@ -130,11 +130,6 @@ Example :
130 BaseDatalet = Polymer({ 130 BaseDatalet = Polymer({
131 is: 'base-datalet', 131 is: 'base-datalet',
132 132
133 - hideFooter: function() {  
134 - this.$.base_datalet_container.innerHTML = "";  
135 - this.$.base_datalet_container.style.border = 0;  
136 - },  
137 -  
138 /** 133 /**
139 * It is called after the element�s template has been stamped and all elements inside the element�s local 134 * It is called after the element�s template has been stamped and all elements inside the element�s local
140 * DOM have been configured (with values bound from parents, deserialized attributes, or else default values) 135 * DOM have been configured (with values bound from parents, deserialized attributes, or else default values)
@@ -146,12 +141,6 @@ Example : @@ -146,12 +141,6 @@ Example :
146 * from the entire URL and set the text content of the datalet footer. 141 * from the entire URL and set the text content of the datalet footer.
147 * @method ready 142 * @method ready
148 */ 143 */
149 -  
150 - attached: function(){  
151 - if(this.title != "" && this.description != "")  
152 - this.description = "- " + this.description;  
153 - },  
154 -  
155 ready: function(){ 144 ready: function(){
156 if(this.dataUrl != undefined) { 145 if(this.dataUrl != undefined) {
157 146
@@ -179,6 +168,11 @@ Example : @@ -179,6 +168,11 @@ Example :
179 } 168 }
180 } 169 }
181 }, 170 },
  171 +
  172 + attached: function(){
  173 + if(this.title != "" && this.description != "")
  174 + this.description = "- " + this.description;
  175 + },
182 176
183 /** 177 /**
184 * Set the domain url to show in the footer 178 * Set the domain url to show in the footer
@@ -186,6 +180,12 @@ Example : @@ -186,6 +180,12 @@ Example :
186 setDomain: function(url){ 180 setDomain: function(url){
187 this.$.domain.textContent = url; 181 this.$.domain.textContent = url;
188 }, 182 },
  183 +
  184 + hideFooter: function() {
  185 + this.$.base_datalet_container.innerHTML = "";
  186 + this.$.base_datalet_container.style.border = 0;
  187 + }
  188 +
189 }); 189 });
190 </script> 190 </script>
191 </dom-module> 191 </dom-module>
192 \ No newline at end of file 192 \ No newline at end of file