only reload filters if not collapsed

This commit is contained in:
rlx 2016-01-16 14:27:38 +05:30
parent b0dcfc35ab
commit 5860bc0e72
2 changed files with 11 additions and 7 deletions

View file

@ -746,9 +746,11 @@ oml.ui.infoView = function(externalData, isMixed) {
if (Ox.contains(['title', 'author', 'description'], key)) {
oml.$ui.info.updateElement();
}
oml.$ui.filters.forEach(function($filter) {
$filter.reloadList();
});
if (ui.showFilters) {
oml.$ui.filters.forEach(function($filter) {
$filter.reloadList(true);
});
}
oml.$ui.list.value(
result.data.id, key, result.data[key]
);

View file

@ -903,11 +903,13 @@ oml.openLink = function(url) {
oml.reloadLists = function() {
Ox.Request.clearCache('find');
oml.$ui.filters.forEach(function($filter) {
$filter.reloadList();
});
if (oml.user.ui.showFilters) {
oml.$ui.filters.forEach(function($filter) {
$filter.reloadList(true);
});
}
oml.$ui.list.reloadList(true);
oml.$ui.browser.reloadList();
oml.$ui.browser.reloadList(true);
};
oml.renameUser = function(data) {