[open-ils-commits] r16176 - in branches/rel_1_6/Open-ILS/web/opac/skin/default: js xml/common (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Apr 8 15:35:27 EDT 2010
Author: dbs
Date: 2010-04-08 15:35:22 -0400 (Thu, 08 Apr 2010)
New Revision: 16176
Modified:
branches/rel_1_6/Open-ILS/web/opac/skin/default/js/password_reset.js
branches/rel_1_6/Open-ILS/web/opac/skin/default/xml/common/login.xml
Log:
Correct IDs and script names make for a better functioning script.
Modified: branches/rel_1_6/Open-ILS/web/opac/skin/default/js/password_reset.js
===================================================================
--- branches/rel_1_6/Open-ILS/web/opac/skin/default/js/password_reset.js 2010-04-08 19:26:39 UTC (rev 16175)
+++ branches/rel_1_6/Open-ILS/web/opac/skin/default/js/password_reset.js 2010-04-08 19:35:22 UTC (rev 16176)
@@ -38,7 +38,7 @@
var deferred = dojo.xhrPost(xhrArgs);
pwResetFormDlg.attr("content", opac_strings.PWD_RESET_SUBMIT_STATUS);
});
- dojo.place("<tr><td colspan='2' align='center'><a class='classic_link' id='pwResetLink' onClick='dijit.byId(\"pwResetFormDlg\").show();'</a></td></tr>", "login_table_body");
+ dojo.place("<tr><td colspan='2' align='center'><a class='classic_link' id='pwResetLink' onClick='dijit.byId(\"pwResetFormDlg\").show();'</a></td></tr>", "login_tbody");
dojo.query("#pwResetLink").attr("innerHTML", opac_strings.PWD_RESET_FORGOT_PROMPT);
});
@@ -74,28 +74,28 @@
var pwResetFormRow = dojo.create("tr", null, pwResetFormTable);
var pwResetFormCell = dojo.create("td", null, pwResetFormRow);
var pwResetFormLabel = dojo.create("label", null, pwResetFormCell);
- dojo.attr(formCell, { innerHTML: opac_strings.BARCODE_PROMPT });
+ dojo.attr(pwResetFormCell, { innerHTML: opac_strings.BARCODE_PROMPT });
pwResetFormCell = dojo.create("td", null, pwResetFormRow);
var barcodeText = new dijit.form.TextBox({
name: "barcode"
- }).placeAt(formCell);
+ }).placeAt(pwResetFormCell);
pwResetFormRow = dojo.create("tr", {}, pwResetFormTable);
pwResetFormCell = dojo.create("td", {}, pwResetFormRow);
- dojo.attr(formCell, { innerHTML: opac_strings.USERNAME_PROMPT });
+ dojo.attr(pwResetFormCell, { innerHTML: opac_strings.USERNAME_PROMPT });
pwResetFormCell = dojo.create("td", {}, pwResetFormRow);
var usernameText = new dijit.form.TextBox({
name: "username"
- }).placeAt(formCell);
+ }).placeAt(pwResetFormCell);
var submitButton = new dijit.form.Button({
id: "submitButton",
type: "submit",
label: opac_strings.SUBMIT_BUTTON_LABEL
- }).placeAt(formDiv);
+ }).placeAt(pwResetFormDiv);
var cancelButton = new dijit.form.Button({
id: "cancelButton",
type: "cancel",
label: opac_strings.CANCEL_BUTTON_LABEL
- }).placeAt(formDiv);
+ }).placeAt(pwResetFormDiv);
// Set the content of the Dialog to the pwResetForm
pwResetFormDlg.attr("content", pwResetFormDiv);
Modified: branches/rel_1_6/Open-ILS/web/opac/skin/default/xml/common/login.xml
===================================================================
--- branches/rel_1_6/Open-ILS/web/opac/skin/default/xml/common/login.xml 2010-04-08 19:26:39 UTC (rev 16175)
+++ branches/rel_1_6/Open-ILS/web/opac/skin/default/xml/common/login.xml 2010-04-08 19:35:22 UTC (rev 16176)
@@ -11,7 +11,7 @@
config.ids.login.cancel = "login_cancel_button";
config.ids.altcanvas.login = config.ids.login.box;
</script>
- <script type='text/javascript' src='<!--#echo var="OILS_OPAC_JS_HOST"-->/skin/default/js/password-reset.js'></script>
+ <script type='text/javascript' src='<!--#echo var="OILS_OPAC_JS_HOST"-->/skin/default/js/password_reset.js'></script>
<br/>
More information about the open-ils-commits
mailing list