Mercurial > hg > isophonics-drupal-site
diff core/modules/quickedit/js/views/EditorView.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 |
line wrap: on
line diff
--- a/core/modules/quickedit/js/views/EditorView.es6.js Mon Apr 23 09:33:26 2018 +0100 +++ b/core/modules/quickedit/js/views/EditorView.es6.js Mon Apr 23 09:46:53 2018 +0100 @@ -118,13 +118,13 @@ // visible yet. break; - case 'activating': + case 'activating': { // The user has indicated he wants to do in-place editing: if // something needs to be loaded (CSS/JavaScript/server data/…), then // do so at this stage, and once the in-place editor is ready, // set the 'active' state. A "loading" indicator will be shown in the // UI for as long as the field remains in this state. - var loadDependencies = function (callback) { + const loadDependencies = function (callback) { // Do the loading here. callback(); }; @@ -132,6 +132,7 @@ fieldModel.set('state', 'active'); }); break; + } case 'active': // The user can now actually use the in-place editor. @@ -184,7 +185,7 @@ save() { const fieldModel = this.fieldModel; const editorModel = this.model; - const backstageId = `quickedit_backstage-${this.fieldModel.id.replace(/[\/\[\]\_\s]/g, '-')}`; + const backstageId = `quickedit_backstage-${this.fieldModel.id.replace(/[/[\]_\s]/g, '-')}`; function fillAndSubmitForm(value) { const $form = $(`#${backstageId}`).find('form');