diff --git a/controllets/dataset-selection-controllet/dataset-selection-controllet.html b/controllets/dataset-selection-controllet/dataset-selection-controllet.html
index eb47454..0fd9919 100755
--- a/controllets/dataset-selection-controllet/dataset-selection-controllet.html
+++ b/controllets/dataset-selection-controllet/dataset-selection-controllet.html
@@ -56,22 +56,12 @@
color: #B6B6B6;
}
- /*paper-dropdown-menu {*/
- /*width: 45%;*/
- /*margin-bottom: 32px;*/
- /*--paper-input-container-focus-color: #2196F3;*/
- /*}*/
-
- paper-input-search {
+ paper-dropdown-menu {
width: 45%;
margin-bottom: 32px;
--paper-input-container-focus-color: #2196F3;
}
- paper-input-search paper-item {
- white-space: nowrap;
- }
-
paper-item.iron-selected {
background-color: #2196F3;
color: #FFFFFF;
@@ -130,7 +120,7 @@
SELECT DATA SOURCE
- TREE MAP VIEW
+ TREE MAP SEARCH
MOST POPULAR
@@ -139,18 +129,16 @@
-
-
+
{{dataset.name}}
-
-
+
@@ -163,7 +151,7 @@
-
+
@@ -194,11 +182,6 @@
value : undefined
},
- filteredDatasets : {
- type : Array,
- value : []
- },
-
dataUrl : {
type : String,
value : undefined,
@@ -208,8 +191,7 @@
},
listeners: {
- 'datasetexplorer-datalet_data-url': '_selectDataUrl_treeMap',
- 'paper-input-search_input-value' : '_filterDatasets'
+ 'datasetexplorer-datalet_data-url': '_selectDataUrl_treeMap'
},
ready : function(){
@@ -220,24 +202,11 @@
this._resize();
var that = this;
window.addEventListener("resize", function() { that._resize(); });
-
- this.filteredDatasets = this.datasets;
- },
-
- _filterDatasets : function(e){
- var filter = e.detail.inputValue;
- var filteredDatasets = [];
- for (var i in this.datasets){
- if(this.datasets[i].name.toLowerCase().indexOf(filter.toLowerCase()) != -1)
- filteredDatasets.push(this.datasets[i]);
- }
-
- this.filteredDatasets = filteredDatasets;
},
_loadTreeMap : function(){
if(this.selected == 0 && this.$.div_datasetexplorer.innerHTML == "")
- this.$.div_datasetexplorer.innerHTML = "";
+ this.$.div_datasetexplorer.innerHTML = "";
},
_selectDataUrl_treeMap : function(e){
@@ -256,7 +225,7 @@
},
_selectDataUrl : function(e){
- var dataset = this.filteredDatasets[parseInt(e.target.id)]
+ var dataset = this.datasets[parseInt(e.target.id)]
this.dataUrl = dataset.url;
@@ -277,10 +246,6 @@
this.fire('dataset-selection-controllet_data-url', {url: this.dataUrl});
},
-// _addHTMLSpace : function(name){
-// return name.replace(/ /g, ' ');
-// },
-
_resize : function(){
var h = Math.max(document.documentElement.clientHeight, window.innerHeight || 0) - 16;
h = h - 64 - 8; //height with page scroller