From 7fa3f7d8fe25cc1fab3016ce1c9a6e80bd0877f7 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 29 Apr 2021 21:57:52 +0200 Subject: [PATCH] no title fallback --- static/js/documentInfoView.js | 2 +- static/js/infoView.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/documentInfoView.js b/static/js/documentInfoView.js index 7dc7e86d0..bb69563ea 100644 --- a/static/js/documentInfoView.js +++ b/static/js/documentInfoView.js @@ -218,7 +218,7 @@ pandora.ui.documentInfoView = function(data, isMixed) { .append( Ox.EditableContent({ editable: canEdit, - placeholder: formatLight(Ox._('No Title')), + placeholder: formatLight(Ox._( isMixed.title ? 'Mixed title' : 'Untitled')), tooltip: canEdit ? pandora.getEditTooltip() : '', value: data.title || '' }) diff --git a/static/js/infoView.js b/static/js/infoView.js index 17d886455..f094f947d 100644 --- a/static/js/infoView.js +++ b/static/js/infoView.js @@ -228,6 +228,7 @@ pandora.ui.infoView = function(data, isMixed) { Ox.EditableContent({ editable: canEdit, tooltip: canEdit ? pandora.getEditTooltip() : '', + placeholder: formatLight(Ox._( isMixed.title ? 'Mixed title' : 'Untitled')), value: data.title || '' }) .css({