PortableInfobox/js/PortableInfoboxBuilder.js
2015-09-01 17:14:01 +02:00

18 lines
408 B
JavaScript

'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'));
}
});