From 2b235978df5b08184430d3e944d807920e459bb1 Mon Sep 17 00:00:00 2001 From: luigser Date: Thu, 1 Oct 2015 14:44:48 +0200 Subject: [PATCH] Controllet cross browser big fix --- controllets/data-sevc-controllet/data-sevc-controllet.html | 22 +++------------------- controllets/items-slider-controllet/items-slider-controllet.html | 4 +++- 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/controllets/data-sevc-controllet/data-sevc-controllet.html b/controllets/data-sevc-controllet/data-sevc-controllet.html index cef0a2c..2cc223c 100644 --- a/controllets/data-sevc-controllet/data-sevc-controllet.html +++ b/controllets/data-sevc-controllet/data-sevc-controllet.html @@ -546,18 +546,6 @@ this.$.fields_treeview.init(e.detail.response); - /*var table_params ={ - component : "datatable-datalet", - params :{ - 'data-url' : this.dataUrl - }, - fields : [], - 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]] - }; - - ComponentService.deep_url = this.deepUrl; - ComponentService.getComponent(table_params);*/ - }, /** @@ -575,10 +563,6 @@ this.datalets_list.push(datalet_info); } - /*var w = $(this.$.visualization_slider_area).width(); - var pages = 2; - var numItemsPerPage = 3;*/ - this.$.visualization_slider_area.innerHTML = ''; }, @@ -586,7 +570,6 @@ handleSelectedDatalet : function(e){ var response = e.detail.response; - // this.$.datalet_idm_fields_container.innerHTML = ""; if(response.idm.inputs.input.constructor == Object) { @@ -650,9 +633,10 @@ }, _datasourceSelected : function(e){ - if(Object.getPrototypeOf(e) !== CustomEvent.prototype) { + + /*if(Object.getPrototypeOf(e) !== CustomEvent.prototype) { e = e[Object.keys(e)[0]]; - } + }*/ this.$.data_url.value = this.datasets_urls[parseInt(e.target.id)]; }, diff --git a/controllets/items-slider-controllet/items-slider-controllet.html b/controllets/items-slider-controllet/items-slider-controllet.html index 6e4b95d..0e8ff19 100644 --- a/controllets/items-slider-controllet/items-slider-controllet.html +++ b/controllets/items-slider-controllet/items-slider-controllet.html @@ -250,7 +250,9 @@ }, attached : function(){ - /*this.selected = 1;*/ + this.selected = 1; + this.$.pages.notifyResize(); + this.selected = 0; this.$.pages.notifyResize(); } }); -- libgit2 0.21.4