Changeset 18433


Ignore:
Timestamp:
Oct 2, 2012, 7:18:44 PM (8 years ago)
Author:
flop25
Message:

More jquery to handle the mail confirmation option
Notice: all 'input' need to be embed into a 'label' like :
<label for="UAM_Confirm_Mail_true"><input type="radio" id="UAM_Confirm_Mail_true" value="true" {$UAM_CONFIRM_MAIL_TRUE} name="UAM_Confirm_Mail"> {'UAM_Confirm_Mail_true'|@translate}</label>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserAdvManager/trunk/admin/template/global.tpl

    r18431 r18433  
    1010jQuery().ready(function()
    1111{
     12  jQuery("#UAM_Confirm_Mail_true, #UAM_Confirm_Mail_local").click(function() {
     13    jQuery("#UAM_CONFIRM_MAIL_TRUE").show("slow");
     14  });
     15  jQuery("#UAM_Confirm_Mail_false").click(function() {
     16    jQuery("#UAM_CONFIRM_MAIL_TRUE").hide("slow");
     17  });
    1218  jQuery("#show_UAM_AdminValidation").click(function() {
    1319    jQuery("#UAM_AdminValidation").show("slow");
     
    234240            </label>
    235241          <br><br>
    236             <input type="radio" value="false" {$UAM_CONFIRM_MAIL_FALSE} name="UAM_Confirm_Mail">
    237               {'UAM_Disable'|@translate}
     242            <label for="UAM_Confirm_Mail_false"><input type="radio" id="UAM_Confirm_Mail_false" value="false" {$UAM_CONFIRM_MAIL_FALSE} name="UAM_Confirm_Mail">
     243              {'UAM_Disable'|@translate}</label>
    238244          <br>
    239             <input type="radio" value="true" {$UAM_CONFIRM_MAIL_TRUE} name="UAM_Confirm_Mail">
    240               {'UAM_Confirm_Mail_true'|@translate}
     245            <label for="UAM_Confirm_Mail_true"><input type="radio" id="UAM_Confirm_Mail_true" value="true" {$UAM_CONFIRM_MAIL_TRUE} name="UAM_Confirm_Mail">
     246              {'UAM_Confirm_Mail_true'|@translate}</label>
    241247          <br>
    242             <input type="radio" value="local" {$UAM_CONFIRM_MAIL_LOCAL} name="UAM_Confirm_Mail">
    243               {'UAM_Confirm_Mail_local'|@translate}
     248            <label for="UAM_Confirm_Mail_local"><input type="radio" id="UAM_Confirm_Mail_local" value="local" {$UAM_CONFIRM_MAIL_LOCAL} name="UAM_Confirm_Mail">
     249              {'UAM_Confirm_Mail_local'|@translate}</label>
    244250          <br><br>
    245251          </li>
    246252         
    247         {if $UAM_CONFIRM_MAIL_FALSE}
    248           <div class="uam_hide">
    249         {/if}
     253          <div id="UAM_CONFIRM_MAIL_TRUE" {if $UAM_CONFIRM_MAIL_FALSE}style="display:none"{/if}>
    250254            <ul>
    251255                    <li>
     
    635639            </div>
    636640          {/if}
    637 
    638         {if $UAM_CONFIRM_MAIL_FALSE}
    639641          </div>
    640         {/if}
    641642
    642643        </ul>
Note: See TracChangeset for help on using the changeset viewer.