From 06e7d3ec3f2cdfcc503f29ebdf33b0d385d0db31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Grabowski?= Date: Wed, 15 Apr 2020 13:22:46 +0200 Subject: [PATCH] EZP-29475: after prettier --- .../scripts/fieldType/ezobjectrelationlist.js | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/src/bundle/Resources/public/js/scripts/fieldType/ezobjectrelationlist.js b/src/bundle/Resources/public/js/scripts/fieldType/ezobjectrelationlist.js index 03b2d3e3e9..55f03eb7b8 100644 --- a/src/bundle/Resources/public/js/scripts/fieldType/ezobjectrelationlist.js +++ b/src/bundle/Resources/public/js/scripts/fieldType/ezobjectrelationlist.js @@ -1,4 +1,4 @@ -(function(global, doc, eZ, React, ReactDOM, Translator) { +(function (global, doc, eZ, React, ReactDOM, Translator) { const CLASS_FIELD_SINGLE = 'ez-field-edit--ezobjectrelation'; const SELECTOR_FIELD_MULTIPLE = '.ez-field-edit--ezobjectrelationlist'; const SELECTOR_FIELD_SINGLE = '.ez-field-edit--ezobjectrelation'; @@ -122,9 +122,18 @@ const config = JSON.parse(event.currentTarget.dataset.udwConfig); const limit = parseInt(event.currentTarget.dataset.limit); - const title = limit === 1 - ? Translator.trans(/*@Desc("Select a Content item")*/ 'ezobjectrelationlist.title.single', {}, 'universal_discovery_widget') - : Translator.trans(/*@Desc("Select Content item(s)")*/ 'ezobjectrelationlist.title.multi', {}, 'universal_discovery_widget'); + const title = + limit === 1 + ? Translator.trans( + /*@Desc("Select a Content item")*/ 'ezobjectrelationlist.title.single', + {}, + 'universal_discovery_widget' + ) + : Translator.trans( + /*@Desc("Select Content item(s)")*/ 'ezobjectrelationlist.title.multi', + {}, + 'universal_discovery_widget' + ); ReactDOM.render( React.createElement( @@ -166,9 +175,9 @@ ${contentName} ${contentTypeName} ${new Date(item.ContentInfo.Content.publishedDate).toLocaleString()} - + `; }; @@ -219,7 +228,7 @@ }; const attachRowsEventHandlers = () => { const isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1; - + findOrderInputs().forEach((item) => { item.addEventListener('blur', updateSelectedItemsOrder, false);