forked from sakaiproject/sakai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SAK-44809 - Fix Content Item Import for CC (sakaiproject#8917)
* SAK-44809 - Fix Content Item Import for CC * SAK-44809 - Add some documentation. * SAK-44809 - UI cleanup - i18n strings * SAK-44809 - Issues identified during testing. * SAK-44809 - Thanks to accesslint
- Loading branch information
Showing
8 changed files
with
299 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<div class="portletBody"> | ||
#if ( $returnUrl && $content_item_url ) | ||
<script>includeLatestJQuery('lti_import_return.vm');</script> | ||
<script> | ||
// https://stackoverflow.com/questions/2506457/how-to-resize-a-iframe-inside-the-containing-page | ||
var elem = window.parent.document.getElementById('sakai-basiclti-launch-iframe'); // the id of your iframe of course | ||
elem.style.height = '40em'; | ||
</script> | ||
<center> | ||
<form method="POST" action="$returnUrl" style="padding: 5em;"> | ||
<input type="hidden" name="content_item_url" value="$content_item_url"> | ||
<p> | ||
<img id="import-cartridge-spinner" src="/library/image/sakai/spinner.gif" alt="$tlang.getString("gen.spinner.alt")" style="display:none;"> | ||
</p> | ||
<p> | ||
<input type="submit" id="import-cartridge-continue" value="$tlang.getString("import.cartridge.continue")"> | ||
</p> | ||
</form> | ||
</center> | ||
<script> | ||
$(document).ready( function() { | ||
$('#import-cartridge-continue').on('click', function() { | ||
$('#import-cartridge-spinner').show(); | ||
setTimeout(function () { $('#import-cartridge-continue').prop('disabled', true); }, 500); | ||
return true; | ||
}); | ||
}); | ||
</script> | ||
#else | ||
<h4>$tlang.getString("operation.complete")</h4> | ||
#end | ||
</div> |
Oops, something went wrong.