[open-ils-commits] r13352 - in trunk/Open-ILS/web: js/ui/default/actor/user templates/default/actor/user (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jun 9 16:11:27 EDT 2009
Author: erickson
Date: 2009-06-09 16:11:23 -0400 (Tue, 09 Jun 2009)
New Revision: 13352
Modified:
trunk/Open-ILS/web/js/ui/default/actor/user/register.js
trunk/Open-ILS/web/templates/default/actor/user/register.tt2
Log:
different show-all / show-required links. show new-addr button when show-required is selected
Modified: trunk/Open-ILS/web/js/ui/default/actor/user/register.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/actor/user/register.js 2009-06-09 17:08:11 UTC (rev 13351)
+++ trunk/Open-ILS/web/js/ui/default/actor/user/register.js 2009-06-09 20:11:23 UTC (rev 13352)
@@ -571,10 +571,12 @@
}
function uEditToggleRequired() {
- if((tbody.className +'').match(/hide-non-required/))
+ if((tbody.className +'').match(/hide-non-required/))
openils.Util.removeCSSClass(tbody, 'hide-non-required');
else
openils.Util.addCSSClass(tbody, 'hide-non-required');
+ openils.Util.toggle('uedit-show-required');
+ openils.Util.toggle('uedit-show-all');
}
Modified: trunk/Open-ILS/web/templates/default/actor/user/register.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/actor/user/register.tt2 2009-06-09 17:08:11 UTC (rev 13351)
+++ trunk/Open-ILS/web/templates/default/actor/user/register.tt2 2009-06-09 20:11:23 UTC (rev 13352)
@@ -135,7 +135,7 @@
<tr fmclass='aua' fmfield='valid' type='addr-template' required='show'/>
<tr fmclass='aua' fmfield='within_city_limits' type='addr-template' required='show'/>
- <tr id='new-addr-row' class='newaddr-row'>
+ <tr id='new-addr-row' class='newaddr-row' required='show'>
<td colspan='0' style='text-align:center;'>
<button dojoType='dijit.form.Button' onClick='uEditNewAddr'>New Address</button>
</td>
@@ -155,7 +155,8 @@
<button dojoType='dijit.form.Button' jsId='saveButton' onClick='uEditSave'>Save</button>
<button dojoType='dijit.form.Button' jsId='saveCloneButton' onClick='uEditSaveClone'>Save & Clone</button>
<div id='require-toggle'>
- <a href='javascript:uEditToggleRequired();'>Show/Hide Required Fields</a>
+ <a href='javascript:uEditToggleRequired();' id='uedit-show-required'>Show Only Required Fields</a>
+ <a href='javascript:uEditToggleRequired();' id='uedit-show-all' class='hidden'>Show All Fields</a>
</div>
</div>
More information about the open-ils-commits
mailing list