From 5860bc0e724593fcdee309983df1724b7779ccb6 Mon Sep 17 00:00:00 2001 From: rlx Date: Sat, 16 Jan 2016 14:27:38 +0530 Subject: [PATCH] only reload filters if not collapsed --- static/js/infoView.js | 8 +++++--- static/js/utils.js | 10 ++++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/static/js/infoView.js b/static/js/infoView.js index 2ed602e..5a2a38f 100644 --- a/static/js/infoView.js +++ b/static/js/infoView.js @@ -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] ); diff --git a/static/js/utils.js b/static/js/utils.js index 418f967..bbf2134 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -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) {