Commit 2b235978df5b08184430d3e944d807920e459bb1

Authored by Luigi Serra
1 parent 835a711f

Controllet cross browser big fix

controllets/data-sevc-controllet/data-sevc-controllet.html
@@ -546,18 +546,6 @@ @@ -546,18 +546,6 @@
546 546
547 this.$.fields_treeview.init(e.detail.response); 547 this.$.fields_treeview.init(e.detail.response);
548 548
549 - /*var table_params ={  
550 - component : "datatable-datalet",  
551 - params :{  
552 - 'data-url' : this.dataUrl  
553 - },  
554 - fields : [],  
555 - placeHolder : (navigator.userAgent.toLowerCase().indexOf('chrome') > -1 ) ? this.$.table_component_place_holder : this.$.table_component_place_holder[Object.keys(this.$.table_component_place_holder)[0]]  
556 - };  
557 -  
558 - ComponentService.deep_url = this.deepUrl;  
559 - ComponentService.getComponent(table_params);*/  
560 -  
561 }, 549 },
562 550
563 /** 551 /**
@@ -575,10 +563,6 @@ @@ -575,10 +563,6 @@
575 this.datalets_list.push(datalet_info); 563 this.datalets_list.push(datalet_info);
576 } 564 }
577 565
578 - /*var w = $(this.$.visualization_slider_area).width();  
579 - var pages = 2;  
580 - var numItemsPerPage = 3;*/  
581 -  
582 this.$.visualization_slider_area.innerHTML = '<items-slider-controllet items=\'' + JSON.stringify(this.datalets_list) + '\'' + 566 this.$.visualization_slider_area.innerHTML = '<items-slider-controllet items=\'' + JSON.stringify(this.datalets_list) + '\'' +
583 '\'></items-slider-controllet>'; 567 '\'></items-slider-controllet>';
584 }, 568 },
@@ -586,7 +570,6 @@ @@ -586,7 +570,6 @@
586 handleSelectedDatalet : function(e){ 570 handleSelectedDatalet : function(e){
587 571
588 var response = e.detail.response; 572 var response = e.detail.response;
589 - //<draggable-element-controllet is-target="true" heading="Field 1" description="This fields is used for ..." number="1"></draggable-element-controllet>  
590 this.$.datalet_idm_fields_container.innerHTML = ""; 573 this.$.datalet_idm_fields_container.innerHTML = "";
591 574
592 if(response.idm.inputs.input.constructor == Object) { 575 if(response.idm.inputs.input.constructor == Object) {
@@ -650,9 +633,10 @@ @@ -650,9 +633,10 @@
650 }, 633 },
651 634
652 _datasourceSelected : function(e){ 635 _datasourceSelected : function(e){
653 - if(Object.getPrototypeOf(e) !== CustomEvent.prototype) { 636 +
  637 + /*if(Object.getPrototypeOf(e) !== CustomEvent.prototype) {
654 e = e[Object.keys(e)[0]]; 638 e = e[Object.keys(e)[0]];
655 - } 639 + }*/
656 640
657 this.$.data_url.value = this.datasets_urls[parseInt(e.target.id)]; 641 this.$.data_url.value = this.datasets_urls[parseInt(e.target.id)];
658 }, 642 },
controllets/items-slider-controllet/items-slider-controllet.html
@@ -250,7 +250,9 @@ @@ -250,7 +250,9 @@
250 }, 250 },
251 251
252 attached : function(){ 252 attached : function(){
253 - /*this.selected = 1;*/ 253 + this.selected = 1;
  254 + this.$.pages.notifyResize();
  255 + this.selected = 0;
254 this.$.pages.notifyResize(); 256 this.$.pages.notifyResize();
255 } 257 }
256 }); 258 });