MDL-60549 lti: support for moving embedded lti into separate tab

This commit is contained in:
David Knuplesch 2017-10-23 14:09:12 +02:00
parent 013f0b2266
commit cc3c33f8ba
3 changed files with 5 additions and 1 deletions

View File

@ -1 +1 @@
define(["jquery"],function(a){return{init:function(b){a(window).ready(function(){window!=top&&parent.processContentItemReturnData(b)})}}});
define(["jquery"],function(a){return{init:function(b){a(window).ready(function(){window!=top?parent.processContentItemReturnData(b):window.processContentItemReturnData(b)})}}});

View File

@ -36,6 +36,8 @@ define(['jquery'], function($) {
if (window != top) {
// Send return data to be processed by the parent window.
parent.processContentItemReturnData(returnData);
} else {
window.processContentItemReturnData(returnData);
}
});
}

View File

@ -119,6 +119,8 @@ if (!empty($errormsg)) {
//<![CDATA[
if(window != top){
top.location.href = '{$url}';
} else {
window.location.href = '{$url}';
}
//]]
</script>