2 * @file entity_browser.iframe_selection.js
4 * Propagates selected entities from iFrame display.
7 (function (drupalSettings) {
11 // We need to access parent window, get it's jquery and find correct iFrame
12 // element to trigger event on.
13 parent.jQuery(parent.document)
14 .find('iframe[data-uuid*=' + drupalSettings.entity_browser.iframe.uuid + ']').hide().prev().hide()
15 .parent().find('a[data-uuid*=' + drupalSettings.entity_browser.iframe.uuid + ']')
16 .trigger('entities-selected', [drupalSettings.entity_browser.iframe.uuid, drupalSettings.entity_browser.iframe.entities])
17 .unbind('entities-selected').show();