]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19795 Put an inline JS function into its own file
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 14:31:25 +0000 (14:31 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 14:31:25 +0000 (14:31 +0000)
enrol/authorize/authorize.js [new file with mode: 0644]

diff --git a/enrol/authorize/authorize.js b/enrol/authorize/authorize.js
new file mode 100644 (file)
index 0000000..122b20c
--- /dev/null
@@ -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;
+}