PortableInfobox/js/PortableInfoboxBuilder.js

18 lines
408 B
JavaScript
Raw Normal View History

'use strict';
require(['ponto', 'jquery'], function (ponto, $) {
var $infoboxBuilderIframe = $('#infoboxBuilderIframe');
if ($infoboxBuilderIframe.length) {
ponto.setTarget(
Ponto.TARGET_IFRAME,
window.location.origin,
$infoboxBuilderIframe[0].contentWindow
);
// load <iframe> content after ponto is set up
$infoboxBuilderIframe.attr('src', $infoboxBuilderIframe.data('src'));
}
});