Loading entity_embed.libraries.yml +1 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ drupal.entity_embed.dialog: dependencies: - core/drupal - core/jquery - core/once caption: version: VERSION Loading js/entity_embed.dialog.js +3 −3 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ * embed dialog. */ (function ($, Drupal) { (function ($, Drupal, once) { "use strict"; Loading @@ -27,7 +27,7 @@ */ Drupal.behaviors.entityEmbedDialog = { attach: function (context, settings) { $('body').once('js-entity-embed-dialog').on('entityBrowserIFrameAppend', function () { $(once('js-entity-embed-dialog', 'body')).on('entityBrowserIFrameAppend', function () { $('.entity-select-dialog').trigger('resize'); // Hide the next button, the click is triggered by Drupal.entityEmbedDialog.selectionCompleted. $('#drupal-modal').parent().find('.js-button-next').addClass('visually-hidden'); Loading @@ -52,4 +52,4 @@ } }; })(jQuery, Drupal); })(jQuery, Drupal, once); Loading
entity_embed.libraries.yml +1 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ drupal.entity_embed.dialog: dependencies: - core/drupal - core/jquery - core/once caption: version: VERSION Loading
js/entity_embed.dialog.js +3 −3 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ * embed dialog. */ (function ($, Drupal) { (function ($, Drupal, once) { "use strict"; Loading @@ -27,7 +27,7 @@ */ Drupal.behaviors.entityEmbedDialog = { attach: function (context, settings) { $('body').once('js-entity-embed-dialog').on('entityBrowserIFrameAppend', function () { $(once('js-entity-embed-dialog', 'body')).on('entityBrowserIFrameAppend', function () { $('.entity-select-dialog').trigger('resize'); // Hide the next button, the click is triggered by Drupal.entityEmbedDialog.selectionCompleted. $('#drupal-modal').parent().find('.js-button-next').addClass('visually-hidden'); Loading @@ -52,4 +52,4 @@ } }; })(jQuery, Drupal); })(jQuery, Drupal, once);