[bugfix] filter widgets to apply on applicable Slices (#658)

Also fixed a white on white issue on hover
This commit is contained in:
Maxime Beauchemin 2016-06-22 16:14:07 -07:00 committed by GitHub
parent f25e37579d
commit 8ebe074954
2 changed files with 16 additions and 1 deletions

View File

@ -6,3 +6,17 @@
.dashboard .filter_box .slice_container > div {
padding-top: 0;
}
ul.select2-results li.select2-highlighted div.filter_box{
color: black;
border-width: 1px;
border-style: solid;
border-color: #666;
}
ul.select2-results div.filter_box{
color: black;
border-style: solid;
border-width: 1px;
border-color: transparent;
}

View File

@ -189,7 +189,8 @@ class BaseViz(object):
for slice_filters in extra_filters.values():
for col, vals in slice_filters.items():
if col and vals:
filters += [(col, 'in', ",".join(vals))]
if col in self.datasource.filterable_column_names:
filters += [(col, 'in', ",".join(vals))]
return filters
def query_obj(self):