more un flags in users dialog

This commit is contained in:
rolux 2012-03-21 14:01:18 +00:00
parent c52640b19c
commit 21b2667f2a

View file

@ -172,8 +172,8 @@ pandora.ui.usersDialog = function() {
width: 16 width: 16
}, },
{ {
format: function(value) { format: function(value, data) {
return value ? Ox.Element({ return Ox.Element({
element: '<img>', element: '<img>',
tooltip: value tooltip: value
}) })
@ -186,7 +186,7 @@ pandora.ui.usersDialog = function() {
borderRadius: '4px', borderRadius: '4px',
marginLeft: '-3px', marginLeft: '-3px',
marginTop: 0 marginTop: 0
}) : ''; });
}, },
id: 'location', id: 'location',
operator: '+', operator: '+',
@ -195,37 +195,6 @@ pandora.ui.usersDialog = function() {
visible: true, visible: true,
width: 16 width: 16
}, },
{
format: function(value) {
var browser;
Ox.forEach(browsers, function(b) {
if (new RegExp('^' + b).test(value)) {
browser = b;
return false;
}
});
return browser ? Ox.Element({
element: '<img>',
tooltip: value
})
.attr({
src: Ox.UI.PATH + 'png/browser'
+ browser.replace(/ /g, '') + '128.png'
})
.css({
width: '14px',
height: '14px',
marginLeft: '-3px',
marginTop: 0
}) : '';
},
id: 'browser',
operator: '+',
title: 'Browser',
titleImage: 'icon',
visible: true,
width: 16
},
{ {
format: function(value) { format: function(value) {
var system; var system;
@ -257,6 +226,37 @@ pandora.ui.usersDialog = function() {
visible: true, visible: true,
width: 16 width: 16
}, },
{
format: function(value) {
var browser;
Ox.forEach(browsers, function(b) {
if (new RegExp('^' + b).test(value)) {
browser = b;
return false;
}
});
return browser ? Ox.Element({
element: '<img>',
tooltip: value
})
.attr({
src: Ox.UI.PATH + 'png/browser'
+ browser.replace(/ /g, '') + '128.png'
})
.css({
width: '14px',
height: '14px',
marginLeft: '-3px',
marginTop: 0
}) : '';
},
id: 'browser',
operator: '+',
title: 'Browser',
titleImage: 'icon',
visible: true,
width: 16
},
{ {
align: 'right', align: 'right',
format: function(value) { format: function(value) {