Skip to content

Commit

Permalink
Fix: Hide not required fields
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 26, 2011
1 parent d452049 commit 9aebe0d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions htdocs/adherents/card_subscriptions.php
Expand Up @@ -684,8 +684,7 @@
{
print "\n".'<script type="text/javascript" language="javascript">';
print 'jQuery(document).ready(function () {
jQuery(".bankswitchclass").'.($bankdirect||$bankviainvoice||in_array(GETPOST('paymentsave'),array('bankdirect','bankviainvoice'))?'show()':'hide()').';
jQuery(".bankswitchclass2").'.($bankdirect||$bankviainvoice||in_array(GETPOST('paymentsave'),array('bankdirect','bankviainvoice'))?'show()':'hide()').';
jQuery(".bankswitchclass").'.($bankdirect||$bankviainvoice?'show()':'hide()').';
jQuery("#none").click(function() {
jQuery(".bankswitchclass").hide();
jQuery(".bankswitchclass2").hide();
Expand All @@ -700,7 +699,7 @@
});
jQuery("#invoiceonly").click(function() {
jQuery(".bankswitchclass").hide();
jQuery(".bankswitchclass2").show();
jQuery(".bankswitchclass2").hide();
});
';
if (GETPOST('paymentsave')) print 'jQuery("#'.GETPOST('paymentsave').'").attr(\'checked\',true);';
Expand Down

0 comments on commit 9aebe0d

Please sign in to comment.