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,37 +195,6 @@ pandora.ui.usersDialog = function() {
visible: true,
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) {
var system;
@ -257,6 +226,37 @@ pandora.ui.usersDialog = function() {
visible: true,
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',
format: function(value) {