diff --git a/core/modules/block_place/js/block_place.es6.js b/core/modules/block_place/js/block_place.es6.js index 92f259549d..7e77a2cc25 100644 --- a/core/modules/block_place/js/block_place.es6.js +++ b/core/modules/block_place/js/block_place.es6.js @@ -4,6 +4,9 @@ */ (function ($, window, Drupal, drupalSettings) { + + 'use strict'; + Drupal.behaviors.blockPlace = { attach: function (context, settings) { // If drupalSettings.block_place is set open open dialog. @@ -14,12 +17,12 @@ dialogType: drupalSettings.block_place.dialog_type, selector: '.ckeditor-dialog-loading-link', url: drupalSettings.block_place.dialog_url, - progress: {type: 'throbber' }, + progress: { type: 'throbber' } }); blockSort.execute(); }); } - }, + } }; // Make sure contextual links work with Ajax. diff --git a/core/modules/block_place/js/block_place.js b/core/modules/block_place/js/block_place.js index 5162837201..dcaaad5bd6 100644 --- a/core/modules/block_place/js/block_place.js +++ b/core/modules/block_place/js/block_place.js @@ -6,6 +6,9 @@ **/ (function ($, window, Drupal, drupalSettings) { + + 'use strict'; + Drupal.behaviors.blockPlace = { attach: function attach(context, settings) { if (drupalSettings.hasOwnProperty('block_place') && drupalSettings.block_place.hasOwnProperty('dialog_url')) {