From edd8aae7a7b1c62c0a890a59b1a2d31c8c84b2d0 Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Wed, 23 Jan 2019 17:48:39 -0500 Subject: [PATCH] auth-common.js, reset.js: use global namespace for paramGet --- frontend/js/auth-common.js | 4 ++-- frontend/js/reset.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/js/auth-common.js b/frontend/js/auth-common.js index 907b928..28e0c85 100644 --- a/frontend/js/auth-common.js +++ b/frontend/js/auth-common.js @@ -13,8 +13,8 @@ // Prefills the email field from the URL parameter. global.prefillEmail = function() { - if (paramGet("email") !== undefined) { - $("#email").val(paramGet("email")); + if (global.paramGet("email") !== undefined) { + $("#email").val(global.paramGet("email")); $("#password").click(); } }; diff --git a/frontend/js/reset.js b/frontend/js/reset.js index 8a7def5..8ca3998 100644 --- a/frontend/js/reset.js +++ b/frontend/js/reset.js @@ -17,7 +17,7 @@ } var json = { - "resetHex": paramGet("hex"), + "resetHex": global.paramGet("hex"), "password": $("#password").val(), };