This commit is contained in:
j 2019-06-07 16:51:29 +01:00
parent c8e8cc29ef
commit 6b8d5038c9
2 changed files with 18 additions and 1 deletions

View file

@ -244,7 +244,7 @@ pandora.ui.documentFilter = function(id) {
}
function replaceFilter(i, id) {
var isOuter = i % 4 == 0;
pandora.$ui[isOuter ? 'browser' : 'filtersInnerPanel'].replaceElement(
pandora.$ui[isOuter ? 'browser' : 'documentFiltersInnerPanel'].replaceElement(
isOuter ? i / 2 : i - 1,
pandora.$ui.documentFilters[i] = pandora.ui.documentFilter(id)
);

View file

@ -2827,9 +2827,15 @@ pandora.resizeFilters = function(width) {
pandora.$ui.browser && pandora.$ui.browser
.size(0, pandora.user.ui.filterSizes[0])
.size(2, pandora.user.ui.filterSizes[4]);
pandora.$ui.documentBrowser && pandora.$ui.documentBrowser
.size(0, pandora.user.ui.filterSizes[0])
.size(2, pandora.user.ui.filterSizes[4]);
pandora.$ui.filtersInnerPanel && pandora.$ui.filtersInnerPanel
.size(0, pandora.user.ui.filterSizes[1])
.size(2, pandora.user.ui.filterSizes[3]);
pandora.$ui.documentFiltersInnerPanel && pandora.$ui.documentFiltersInnerPanel
.size(0, pandora.user.ui.filterSizes[1])
.size(2, pandora.user.ui.filterSizes[3]);
pandora.$ui.filters && pandora.$ui.filters.forEach(function($list, i) {
$list.resizeColumn(
'name',
@ -2841,6 +2847,17 @@ pandora.resizeFilters = function(width) {
});
}
});
pandora.$ui.documentFilters && pandora.$ui.documentFilters.forEach(function($list, i) {
$list.resizeColumn(
'name',
pandora.user.ui.filterSizes[i] - 44 - Ox.UI.SCROLLBAR_SIZE
);
if (pandora.site.flags) {
$list.find('.flagname').css({
width: pandora.user.ui.filterSizes[i] - 68 - Ox.UI.SCROLLBAR_SIZE
});
}
});
};
pandora.resizeFolders = function(section) {