Fix: Hide not required fields
This commit is contained in:
parent
d452049790
commit
9aebe0d1ba
@ -684,8 +684,7 @@ if ($rowid)
|
|||||||
{
|
{
|
||||||
print "\n".'<script type="text/javascript" language="javascript">';
|
print "\n".'<script type="text/javascript" language="javascript">';
|
||||||
print 'jQuery(document).ready(function () {
|
print 'jQuery(document).ready(function () {
|
||||||
jQuery(".bankswitchclass").'.($bankdirect||$bankviainvoice||in_array(GETPOST('paymentsave'),array('bankdirect','bankviainvoice'))?'show()':'hide()').';
|
jQuery(".bankswitchclass").'.($bankdirect||$bankviainvoice?'show()':'hide()').';
|
||||||
jQuery(".bankswitchclass2").'.($bankdirect||$bankviainvoice||in_array(GETPOST('paymentsave'),array('bankdirect','bankviainvoice'))?'show()':'hide()').';
|
|
||||||
jQuery("#none").click(function() {
|
jQuery("#none").click(function() {
|
||||||
jQuery(".bankswitchclass").hide();
|
jQuery(".bankswitchclass").hide();
|
||||||
jQuery(".bankswitchclass2").hide();
|
jQuery(".bankswitchclass2").hide();
|
||||||
@ -700,7 +699,7 @@ if ($rowid)
|
|||||||
});
|
});
|
||||||
jQuery("#invoiceonly").click(function() {
|
jQuery("#invoiceonly").click(function() {
|
||||||
jQuery(".bankswitchclass").hide();
|
jQuery(".bankswitchclass").hide();
|
||||||
jQuery(".bankswitchclass2").show();
|
jQuery(".bankswitchclass2").hide();
|
||||||
});
|
});
|
||||||
';
|
';
|
||||||
if (GETPOST('paymentsave')) print 'jQuery("#'.GETPOST('paymentsave').'").attr(\'checked\',true);';
|
if (GETPOST('paymentsave')) print 'jQuery("#'.GETPOST('paymentsave').'").attr(\'checked\',true);';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user