Permalink
Browse files

MDL-57527 portfolio: remove legacy yui from js

  • Loading branch information...
danpoltawski committed Dec 29, 2016
1 parent c73e3ef commit e46b11a6a16633d1a8830fc8b4d14ba264d01a19
Showing with 7 additions and 9 deletions.
  1. +7 −2 portfolio/download/file.php
  2. +0 −7 portfolio/download/helper.js
@@ -25,8 +25,6 @@
$returnurl = $exporter->get('caller')->get_return_url();
echo $OUTPUT->notification('<a href="' . $returnurl . '">' . get_string('returntowhereyouwere', 'portfolio') . '</a><br />');
$PAGE->requires->js('/portfolio/download/helper.js');
$PAGE->requires->js_function_call('submit_download_form', null, true);
// if they don't have javascript, they can submit the form here to get the file.
// if they do, it does it nicely for them.
@@ -35,6 +33,13 @@
<input type="submit" value="' . get_string('downloadfile', 'portfolio_download') . '" />
</form>
';
$PAGE->requires->js_amd_inline("
require(['jquery'], function($) {
$('#redirectform').submit(function() {
$('#redirect').addClass('hide');
}).submit();
});");
echo $OUTPUT->footer();

This file was deleted.

Oops, something went wrong.

0 comments on commit e46b11a

Please sign in to comment.