X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fquickedit%2Fjs%2Fquickedit.es6.js;fp=web%2Fcore%2Fmodules%2Fquickedit%2Fjs%2Fquickedit.es6.js;h=ba742033fcac818a83753b7ec07bed0a066c7ca4;hp=84fee16cdfd59accb8d5785bd6b5e7199a415126;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/quickedit/js/quickedit.es6.js b/web/core/modules/quickedit/js/quickedit.es6.js index 84fee16cd..ba742033f 100644 --- a/web/core/modules/quickedit/js/quickedit.es6.js +++ b/web/core/modules/quickedit/js/quickedit.es6.js @@ -364,7 +364,7 @@ // If there are no elements returned from `entityElementSelector` // throw an error. Check the browser console for this message. if (!$entityElement.length) { - throw `Quick Edit could not associate the rendered entity field markup (with [data-quickedit-field-id="${fieldID}"]) with the corresponding rendered entity markup: no parent DOM node found with [data-quickedit-entity-id="${entityID}"]. This is typically caused by the theme's template for this entity type forgetting to print the attributes.`; + throw new Error(`Quick Edit could not associate the rendered entity field markup (with [data-quickedit-field-id="${fieldID}"]) with the corresponding rendered entity markup: no parent DOM node found with [data-quickedit-entity-id="${entityID}"]. This is typically caused by the theme's template for this entity type forgetting to print the attributes.`); } let entityElement = $(fieldElement).closest($entityElement);