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

This commit is contained in:
David Knuplesch
2018-01-16 10:12:24 +08:00
committed by Andrew Nicols
parent 3cf3e20b77
commit fb4da0de30
3 changed files with 5 additions and 1 deletions
+1 -1
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)})}}});
+2
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);
}
});
}
+2
View File
@@ -119,6 +119,8 @@ if (!empty($errormsg)) {
//<![CDATA[
if(window != top){
top.location.href = '{$url}';
} else {
window.location.href = '{$url}';
}
//]]
</script>