From 6015528f8e0ee82cff73791da3cd09e44821066b Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 20 Jul 2013 08:06:16 +0000 Subject: [PATCH] fix #1161 (List view: It shouldn't be possible to add a 'Random' column) --- static/js/list.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/list.js b/static/js/list.js index 3f666ff32..3a52753dc 100644 --- a/static/js/list.js +++ b/static/js/list.js @@ -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',