From: nicolasconnault Date: Thu, 6 Aug 2009 14:31:25 +0000 (+0000) Subject: MDL-19795 Put an inline JS function into its own file X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=406c34c80f3f621b39f5677f7944805a7ab9ca42;p=moodle.git MDL-19795 Put an inline JS function into its own file --- diff --git a/enrol/authorize/authorize.js b/enrol/authorize/authorize.js new file mode 100644 index 0000000000..122b20c4a5 --- /dev/null +++ b/enrol/authorize/authorize.js @@ -0,0 +1,5 @@ +function authorize_jump_to_mypayments(e, args) { + var locationtogo = moodle_cfg.wwwroot + '/enrol/authorize/index.php?status' + args.status; + locationtogo += '&user=' + (this.checked ? args.userid : '0'); + top.location.href = locationtogo; +}