From 406c34c80f3f621b39f5677f7944805a7ab9ca42 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Thu, 6 Aug 2009 14:31:25 +0000 Subject: [PATCH] MDL-19795 Put an inline JS function into its own file --- enrol/authorize/authorize.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 enrol/authorize/authorize.js 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; +} -- 2.39.5