forked from 0x2620/pandora
make flags a site (not user) config (fixes #1268)
This commit is contained in:
parent
cd4c7b62a1
commit
e00c33a623
6 changed files with 6 additions and 6 deletions
|
|
@ -15,7 +15,7 @@ pandora.ui.filter = function(id) {
|
|||
align: 'left',
|
||||
id: 'name',
|
||||
format: function(value) {
|
||||
return pandora.user.ui.showFlags && ['country', 'language'].indexOf(id) > -1
|
||||
return pandora.site.flags && ['country', 'language'].indexOf(id) > -1
|
||||
? $('<div>')
|
||||
.append(
|
||||
$('<img>')
|
||||
|
|
|
|||
|
|
@ -1132,7 +1132,7 @@ pandora.resizeFilters = function(width) {
|
|||
.size(2, pandora.user.ui.filterSizes[3]);
|
||||
pandora.$ui.filters && pandora.$ui.filters.forEach(function($list, i) {
|
||||
$list.resizeColumn('name', pandora.user.ui.filterSizes[i] - 44 - Ox.UI.SCROLLBAR_SIZE);
|
||||
if (pandora.user.ui.showFlags) {
|
||||
if (pandora.site.flags) {
|
||||
$list.find('.flagname').css({width: pandora.user.ui.filterSizes[i] - 68 - Ox.UI.SCROLLBAR_SIZE})
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue