[open-ils-commits] r16572 - trunk/Open-ILS/web/opac/skin/default/js (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jun 3 00:25:54 EDT 2010
Author: dbs
Date: 2010-06-03 00:25:51 -0400 (Thu, 03 Jun 2010)
New Revision: 16572
Modified:
trunk/Open-ILS/web/opac/skin/default/js/password_reset.js
Log:
Don't hardcode our password forms to en-US
Modified: trunk/Open-ILS/web/opac/skin/default/js/password_reset.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/password_reset.js 2010-06-03 04:05:39 UTC (rev 16571)
+++ trunk/Open-ILS/web/opac/skin/default/js/password_reset.js 2010-06-03 04:25:51 UTC (rev 16572)
@@ -73,7 +73,8 @@
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);
More information about the open-ils-commits
mailing list