consolidate list reloading

This commit is contained in:
rlx 2016-01-12 14:22:20 +05:30
commit 904ed06349
8 changed files with 21 additions and 33 deletions

View file

@ -284,7 +284,7 @@ oml.createLinks = function($element) {
});
if (Ox.contains(object.targets, ui._list)) {
// FIXME: Why is this timeout needed?
setTimeout(oml.reloadList, 250);
setTimeout(oml.reloadLists, 250);
}
callback && callback();
}
@ -882,8 +882,13 @@ oml.openLink = function(url) {
}
};
oml.reloadList = function() {
oml.$ui.list.updateElement();
oml.reloadLists = function() {
Ox.Request.clearCache('find');
oml.$ui.filters.forEach(function($filter) {
$filter.reloadList();
});
oml.$ui.list.reloadList(true);
oml.$ui.browser.reloadList();
};
oml.renameUser = function(data) {