Skip to content

Commit

Permalink
MDL-34741 use 2in3 in portfolio download
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Aug 11, 2012
1 parent 7003965 commit 69878a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion portfolio/download/file.php
Expand Up @@ -13,7 +13,6 @@
require_once($CFG->libdir.'/portfoliolib.php');
require_once($CFG->libdir.'/portfolio/exporter.php');

$PAGE->requires->yui2_lib('dom');
$id = required_param('id', PARAM_INT);

$PAGE->set_url('/portfolio/download/file.php', array('id' => $id));
Expand Down
6 changes: 4 additions & 2 deletions portfolio/download/helper.js
@@ -1,5 +1,7 @@
function submit_download_form() {
f = YAHOO.util.Dom.get("redirectform");
YAHOO.util.Dom.addClass(f.parentNode, "hide");
YUI().use('yui2-dom', function(Y) {
f = Y.YUI2.util.Dom.get("redirectform");
Y.YUI2.util.Dom.addClass(f.parentNode, "hide");
f.submit();
});
}

0 comments on commit 69878a3

Please sign in to comment.