meta
This commit is contained in:
parent
edd42dfd76
commit
d385853186
48 changed files with 1344 additions and 488 deletions
|
|
@ -56,6 +56,33 @@ oml.ui.filtersOuterPanel = function() {
|
|||
});
|
||||
oml.updateFilterMenus();
|
||||
}
|
||||
},
|
||||
oml_find: function() {
|
||||
var previousUI = oml.UI.getPrevious();
|
||||
Ox.print('WTF', ui, oml.user.ui, Object.keys(ui), Object.keys(previousUI));
|
||||
ui._filterState.forEach(function(data, index) {
|
||||
if (!Ox.isEqual(data.selected, previousUI._filterState[index].selected)) {
|
||||
oml.$ui.filters[index].options(
|
||||
ui.showFilters ? {
|
||||
selected: data.selected
|
||||
} : {
|
||||
_selected: data.selected,
|
||||
selected: []
|
||||
}
|
||||
);
|
||||
}
|
||||
if (!Ox.isEqual(data.find, previousUI._filterState[index].find)) {
|
||||
Ox.print('::::', index, 'UNEQUAL', data.find, previousUI._filterState[index].find)
|
||||
if (!ui.showFilters) {
|
||||
oml.$ui.filters[index].options({
|
||||
_selected: data.selected
|
||||
});
|
||||
}
|
||||
// we can call reloadList here, since the items function
|
||||
// handles the hidden filters case without making requests
|
||||
oml.$ui.filters[index].reloadList();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue