add isMixed/isMultiple

This commit is contained in:
j 2019-07-31 11:53:12 +02:00
parent 6de857fbd0
commit 522328693d

View file

@ -1,8 +1,10 @@
'use strict';
pandora.ui.infoView = function(data) {
pandora.ui.infoView = function(data, isMixed) {
isMixed = isMixed || {};
var ui = pandora.user.ui,
isMultiple = arguments.length == 2,
canEdit = pandora.site.capabilities.canEditMetadata[pandora.user.level] || data.editable,
canRemove = pandora.site.capabilities.canRemoveItems[pandora.user.level] || data.editable,
css = {