comparison core/modules/quickedit/js/quickedit.es6.js @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children 129ea1e6d783
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
362 const $entityElement = $(entityElementSelector); 362 const $entityElement = $(entityElementSelector);
363 363
364 // If there are no elements returned from `entityElementSelector` 364 // If there are no elements returned from `entityElementSelector`
365 // throw an error. Check the browser console for this message. 365 // throw an error. Check the browser console for this message.
366 if (!$entityElement.length) { 366 if (!$entityElement.length) {
367 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.`; 367 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.`);
368 } 368 }
369 let entityElement = $(fieldElement).closest($entityElement); 369 let entityElement = $(fieldElement).closest($entityElement);
370 370
371 // In the case of a full entity view page, the entity title is rendered 371 // In the case of a full entity view page, the entity title is rendered
372 // outside of "the entity DOM node": it's rendered as the page title. So in 372 // outside of "the entity DOM node": it's rendered as the page title. So in