MDL-60549 lti: support for moving embedded lti into separate tab
This commit is contained in:
committed by
Andrew Nicols
parent
3cf3e20b77
commit
fb4da0de30
+1
-1
@@ -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)})}}});
|
||||
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -119,6 +119,8 @@ if (!empty($errormsg)) {
|
||||
//<![CDATA[
|
||||
if(window != top){
|
||||
top.location.href = '{$url}';
|
||||
} else {
|
||||
window.location.href = '{$url}';
|
||||
}
|
||||
//]]
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user