fix #1161 (List view: It shouldn't be possible to add a 'Random' column)

This commit is contained in:
rolux 2013-07-20 08:06:16 +00:00
parent f4d6cd33c9
commit 6015528f8e

View file

@ -59,6 +59,7 @@ pandora.ui.list = function() {
}).map(function(key) {
var position = pandora.user.ui.listColumns.indexOf(key.id);
return {
addable: key.id != 'random',
align: ['string', 'text'].indexOf(
Ox.isArray(key.type) ? key.type[0]: key.type
) > -1 ? 'left' : key.type == 'list' ? 'center' : 'right',