mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-60549 lti: support for moving embedded lti into separate tab
This commit is contained in:
parent
013f0b2266
commit
cc3c33f8ba
2
mod/lti/amd/build/contentitem_return.min.js
vendored
2
mod/lti/amd/build/contentitem_return.min.js
vendored
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user