consolidate list reloading
This commit is contained in:
parent
16c0514809
commit
904ed06349
8 changed files with 21 additions and 33 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue