From f5f2fc49e87a6bac495a04e2e6d5ad8a2b9cef6d Mon Sep 17 00:00:00 2001 From: dbs Date: Thu, 8 Apr 2010 19:35:22 +0000 Subject: [PATCH] Correct IDs and script names make for a better functioning script. git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@16176 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/skin/default/js/password_reset.js | 14 +++++++------- Open-ILS/web/opac/skin/default/xml/common/login.xml | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) 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 9628c4ca7a..c6401720d5 100644 --- a/Open-ILS/web/opac/skin/default/js/password_reset.js +++ b/Open-ILS/web/opac/skin/default/js/password_reset.js @@ -38,7 +38,7 @@ dojo.addOnLoad(function() { var deferred = dojo.xhrPost(xhrArgs); pwResetFormDlg.attr("content", opac_strings.PWD_RESET_SUBMIT_STATUS); }); - dojo.place("", "login_table_body"); + dojo.place("", "login_tbody"); dojo.query("#pwResetLink").attr("innerHTML", opac_strings.PWD_RESET_FORGOT_PROMPT); }); @@ -74,28 +74,28 @@ function createResetDialog() { 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); diff --git a/Open-ILS/web/opac/skin/default/xml/common/login.xml b/Open-ILS/web/opac/skin/default/xml/common/login.xml index 9501d36fac..b94cb5b2c4 100644 --- a/Open-ILS/web/opac/skin/default/xml/common/login.xml +++ b/Open-ILS/web/opac/skin/default/xml/common/login.xml @@ -11,7 +11,7 @@ config.ids.login.cancel = "login_cancel_button"; config.ids.altcanvas.login = config.ids.login.box; - +
-- 2.11.0