18 lines
666 B
Smarty
18 lines
666 B
Smarty
<script type="text/javascript">
|
|
|
|
require(['jquery', 'serviceApi/StateStorage', 'serviceApi/ServiceApi'], function($, StateStorage, ServiceApi) {
|
|
$("#loader").css('display', 'none');
|
|
var serviceApi = <?=get_data('serviceApi')?>;
|
|
var $frame = $('#iframe_<?=get_data('renderId')?>');
|
|
serviceApi.loadInto($frame[0]);
|
|
$frame.load(function() {
|
|
var doc = this.contentWindow || this.contentDocument;
|
|
if (doc.document) {
|
|
doc = doc.document;
|
|
}
|
|
$(this).height($(doc).height());
|
|
});
|
|
});
|
|
</script>
|
|
<iframe id='iframe_<?=get_data('renderId')?>' class="toolframe" frameborder="0" style="width:100%"></iframe>
|