From 2cd1d857027bb4e86a9578a575c35955f547591b Mon Sep 17 00:00:00 2001 From: j Date: Mon, 5 Nov 2018 20:30:27 +0000 Subject: [PATCH] fix batch editing --- static/js/infoView.amp.js | 49 ++++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/static/js/infoView.amp.js b/static/js/infoView.amp.js index c71eab2..a30f579 100644 --- a/static/js/infoView.amp.js +++ b/static/js/infoView.amp.js @@ -215,30 +215,31 @@ pandora.ui.infoView = function(data, isMixed) { } // Title ------------------------------------------------------------------- - - $('
') - .css({ - marginTop: '-2px', - marginBottom: '12px' - }) - .append( - Ox.EditableContent({ - editable: canEdit, - placeholder: formatLight(Ox._('No Title')), - tooltip: canEdit ? pandora.getEditTooltip() : '', - value: data.title - }) - .css({ - fontWeight: 'bold', - fontSize: '13px' - }) - .bindEvent({ - submit: function(event) { - editMetadata('title', event.value); - } - }) - ) - .appendTo($text); + if (!isMultiple) { + $('
') + .css({ + marginTop: '-2px', + marginBottom: '12px' + }) + .append( + Ox.EditableContent({ + editable: canEdit, + placeholder: formatLight(Ox._('No Title')), + tooltip: canEdit ? pandora.getEditTooltip() : '', + value: data.title + }) + .css({ + fontWeight: 'bold', + fontSize: '13px' + }) + .bindEvent({ + submit: function(event) { + editMetadata('title', event.value); + } + }) + ) + .appendTo($text); + } // Groups ------------------------------------------------------------------