Skip to content

Commit

Permalink
SAK-29016 message bundle manager resize iframe when not inlined
Browse files Browse the repository at this point in the history
  • Loading branch information
ern committed Jan 23, 2015
1 parent 23ae2fe commit 3151109
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@
<script src="js/jquery-1.11.2.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<script th:inline="javascript">
/*<![CDATA[*/
/** Adjust frame height (if in an iframe) */
$(document)
.ready(
function() {
var toolId = /*[[${#httpServletRequest.getAttribute('sakai.tool.placement.id')}]]*/'toolId';
if (toolId) {
setMainFrameHeight('Main' + toolId.replace(/-/g, 'x'));
}
});
/*]]>*/
</script>
</div>
<div th:fragment="loadBundlesFromDb (enabled)">
<div th:unless="${enabled}">
Expand Down

0 comments on commit 3151109

Please sign in to comment.