From ee2c59047b36eb3796c0f9b4838caec12663a825 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 22 Sep 2016 23:05:48 +0200 Subject: [PATCH] add itemKey.advanced if set, key does not show in findElement --- static/js/findElement.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/findElement.js b/static/js/findElement.js index 4477f0b1..1581bc77 100644 --- a/static/js/findElement.js +++ b/static/js/findElement.js @@ -34,8 +34,9 @@ pandora.ui.findElement = function() { id: 'select', items: [].concat( pandora.site.findKeys.filter(function(key, i) { - return !key.capability - || pandora.site.capabilities[key.capability][pandora.user.level]; + return (!key.capability + || pandora.site.capabilities[key.capability][pandora.user.level]) + && !key.advanced; }).map(function(key) { return { id: key.id,