From 3003cc2c446b70c9f20bdca32a87db4208fe6d7f Mon Sep 17 00:00:00 2001 From: j Date: Sat, 19 Nov 2016 13:55:29 +0200 Subject: [PATCH] list might be undefine --- static/js/mainMenu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/mainMenu.js b/static/js/mainMenu.js index 7dd2efeab..83b86d8d4 100644 --- a/static/js/mainMenu.js +++ b/static/js/mainMenu.js @@ -1344,7 +1344,7 @@ pandora.ui.mainMenu = function() { Ox.contains(['list', 'grid', 'clips', 'timelines'], ui.listView) && ui.listSelection.length == 1 ) - ) && pandora.$ui.list.value(ui.listSelection[0], 'editable') + ) && pandora.$ui.list && pandora.$ui.list.value(ui.listSelection[0], 'editable') ), canDelete = ( ui.section == 'items' && ( @@ -1355,7 +1355,7 @@ pandora.ui.mainMenu = function() { ) && ( pandora.site.capabilities.canRemoveItems[pandora.user.level] || ui.listSelection.every(function(item) { - return pandora.$ui.list.value(item, 'editable'); + return pandora.$ui.list && pandora.$ui.list.value(item, 'editable'); }) ) ),