make flags a site (not user) config (fixes #1268)

This commit is contained in:
rolux 2013-02-20 01:27:59 +05:30
commit e00c33a623
6 changed files with 6 additions and 6 deletions

View file

@ -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>')

View file

@ -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})
}
});