From: dbs Date: Thu, 3 Jun 2010 04:25:51 +0000 (+0000) Subject: Don't hardcode our password forms to en-US X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1f4c90948ba399f05ca971c1a72ad56a1264179c;p=evergreen%2Fbjwebb.git Don't hardcode our password forms to en-US git-svn-id: svn://svn.open-ils.org/ILS/trunk@16572 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/skin/default/js/password_reset.js b/Open-ILS/web/opac/skin/default/js/password_reset.js index c8f2bfd75..83db2721d 100644 --- a/Open-ILS/web/opac/skin/default/js/password_reset.js +++ b/Open-ILS/web/opac/skin/default/js/password_reset.js @@ -73,7 +73,8 @@ function createResetDialog() { pwResetFormDlg.startup(); // Instantiate the form - var pwResetFormDiv = dojo.create("form", { id: "requestReset", style: "width: 30em", method: "post", action: "/opac/password/en-US/" }); + var pwResetFormURL = "/opac/password/" + (OpenSRF.locale || "en-US") + "/"; + var pwResetFormDiv = dojo.create("form", { id: "requestReset", style: "width: 30em", method: "post", action: pwResetFormURL }); dojo.create("p", { innerHTML: opac_strings.PWD_RESET_SUBMIT_PROMPT }, pwResetFormDiv); var pwResetFormTable = dojo.create("table", null, pwResetFormDiv); var pwResetFormTbody = dojo.create("tbody", null, pwResetFormTable);