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