[open-ils-commits] r18631 - in branches/rel_2_0/Open-ILS/web/opac/skin/default: js xml/common (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Nov 5 13:37:20 EDT 2010
Author: phasefx
Date: 2010-11-05 13:37:16 -0400 (Fri, 05 Nov 2010)
New Revision: 18631
Modified:
branches/rel_2_0/Open-ILS/web/opac/skin/default/js/sidebar.js
branches/rel_2_0/Open-ILS/web/opac/skin/default/xml/common/login.xml
Log:
backport r18548, 18564, and 18602 from trunk for opac login form tweaks
Modified: branches/rel_2_0/Open-ILS/web/opac/skin/default/js/sidebar.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/opac/skin/default/js/sidebar.js 2010-11-05 17:35:38 UTC (rev 18630)
+++ branches/rel_2_0/Open-ILS/web/opac/skin/default/js/sidebar.js 2010-11-05 17:37:16 UTC (rev 18631)
@@ -157,12 +157,6 @@
function initLogin() {
- G.ui.login.button.onclick = loginDance;
- G.ui.login.username.onkeydown =
- function(evt) {if(userPressedEnter(evt)) loginDance();};
- G.ui.login.password.onkeydown =
- function(evt) {if(userPressedEnter(evt)) loginDance();};
-
// if(loginBoxVisible) {
// showCanvas();
// } else {
@@ -171,9 +165,9 @@
// }
// loginBoxVisible = !loginBoxVisible;
- G.ui.login.cancel.onclick = showCanvas;
+ G.ui.login.cancel.onclick = function(evt) { G.ui.login.form.setAttribute('action','javascript:showCanvas();'); };
if(findCurrentPage() == MYOPAC)
- G.ui.login.cancel.onclick = goHome;
+ G.ui.login.cancel.onclick = function(evt) { G.ui.login.form.setAttribute('action','javascript:goHome();'); };
}
function setSidebarLinks() {
Modified: branches/rel_2_0/Open-ILS/web/opac/skin/default/xml/common/login.xml
===================================================================
--- branches/rel_2_0/Open-ILS/web/opac/skin/default/xml/common/login.xml 2010-11-05 17:35:38 UTC (rev 18630)
+++ branches/rel_2_0/Open-ILS/web/opac/skin/default/xml/common/login.xml 2010-11-05 17:37:16 UTC (rev 18631)
@@ -4,6 +4,7 @@
<script language='javascript' type='text/javascript'>
config.ids.login = {};
config.css.login = {};
+ config.ids.login.form = "login_form";
config.ids.login.box = "login_box";
config.ids.login.tbody = "login_tbody";
config.ids.login.username = "login_username";
@@ -22,39 +23,41 @@
<br/>
- <table id='login_table' class='data_grid' style='margin-left: 20px;' width='95%'>
- <tbody id='login_tbody'>
- <tr>
- <td><span class='login_text'>&login.username;</span></td>
- <td>
- <span class='login_text'>
- <input id='login_username' type='text' size='16' />
- </span>
- </td>
- </tr>
- <tr>
- <td>
- <span class='login_text'>&common.password;</span>
- </td>
- <td>
- <span class='login_text'>
- <input id='login_password' type='password' size='16' />
- </span>
- </td>
- </tr>
- <tr><td><br/></td><td/></tr>
- <tr class='color_1'>
- <td colspan='2' align='center'>
- <span class='login_text' style='margin-right: 20px;'>
- <input type='submit' value='&common.login;' id='login_button'/>
- </span>
- <span class='login_text' style='margin-left: 20px;'>
- <input type='submit' id='login_cancel_button' value='&common.cancel;'/>
- </span>
- </td>
- </tr>
- </tbody>
- </table>
+ <form id='login_form' method='POST' action='javascript:loginDance();'>
+ <table id='login_table' class='data_grid' style='margin-left: 20px;' width='95%'>
+ <tbody id='login_tbody'>
+ <tr>
+ <td><span class='login_text'>&login.username;</span></td>
+ <td>
+ <span class='login_text'>
+ <input id='login_username' name='login_username' type='text' size='16'></input>
+ </span>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <span class='login_text'>&common.password;</span>
+ </td>
+ <td>
+ <span class='login_text'>
+ <input id='login_password' name='login_password' type='password' size='16'></input>
+ </span>
+ </td>
+ </tr>
+ <tr><td><br/></td><td/></tr>
+ <tr class='color_1'>
+ <td colspan='2' align='center'>
+ <span class='login_text' style='margin-right: 20px;'>
+ <input type='submit' value='&common.login;' name='login_button' id='login_button'></input>
+ </span>
+ <span class='login_text' style='margin-left: 20px;'>
+ <input type='submit' name='login_cancel_button' id='login_cancel_button' value='&common.cancel;'></input>
+ </span>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </form>
<table id='change_pw_table' class='data_grid hide_me' style='margin-left: 20px;' width='95%'>
<thead>
More information about the open-ils-commits
mailing list