remove site.flags, add 'flag' item key property; update 0xDB config; update filter.js
This commit is contained in:
parent
6c6693e922
commit
f3af1b70a0
3 changed files with 11 additions and 12 deletions
|
|
@ -15,12 +15,14 @@ pandora.ui.filter = function(id) {
|
|||
align: 'left',
|
||||
id: 'name',
|
||||
format: function(value) {
|
||||
return pandora.site.flags && ['country', 'language'].indexOf(id) > -1
|
||||
return filter.flag
|
||||
? $('<div>')
|
||||
.append(
|
||||
$('<img>')
|
||||
.attr({src: Ox[
|
||||
id == 'country' ? 'getFlagByGeoname' : 'getFlagByLanguage'
|
||||
filter.flag == 'country'
|
||||
? 'getFlagByGeoname'
|
||||
: 'getFlagByLanguage'
|
||||
](value, 16)})
|
||||
.css({
|
||||
float: 'left',
|
||||
|
|
@ -35,7 +37,8 @@ pandora.ui.filter = function(id) {
|
|||
.addClass('flagname')
|
||||
.css({
|
||||
float: 'left',
|
||||
width: pandora.user.ui.filterSizes[i] - 68 - Ox.UI.SCROLLBAR_SIZE,
|
||||
width: pandora.user.ui.filterSizes[i]
|
||||
- 68 - Ox.UI.SCROLLBAR_SIZE,
|
||||
textOverflow: 'ellipsis',
|
||||
overflowX: 'hidden'
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue