comparison core/modules/quickedit/js/quickedit.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
160 160
161 var entityElementSelector = '[data-quickedit-entity-id="' + entityID + '"]'; 161 var entityElementSelector = '[data-quickedit-entity-id="' + entityID + '"]';
162 var $entityElement = $(entityElementSelector); 162 var $entityElement = $(entityElementSelector);
163 163
164 if (!$entityElement.length) { 164 if (!$entityElement.length) {
165 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.'; 165 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.');
166 } 166 }
167 var entityElement = $(fieldElement).closest($entityElement); 167 var entityElement = $(fieldElement).closest($entityElement);
168 168
169 if (entityElement.length === 0) { 169 if (entityElement.length === 0) {
170 var $lowestCommonParent = $entityElement.parents().has(fieldElement).first(); 170 var $lowestCommonParent = $entityElement.parents().has(fieldElement).first();