diff --git a/htdocs/public/members/new.php b/htdocs/public/members/new.php index 9bbe93d951f..232c63cccbf 100644 --- a/htdocs/public/members/new.php +++ b/htdocs/public/members/new.php @@ -22,7 +22,7 @@ * \file htdocs/public/members/new.php * \ingroup member * \brief Example of form to add a new member - * \version $Id: new.php,v 1.31 2011/07/03 16:55:31 eldy Exp $ + * \version $Id: new.php,v 1.32 2011/07/03 17:23:12 eldy Exp $ * * Note that you can add following constant to change behaviour of page * MEMBER_NEWFORM_AMOUNT Default amount for autosubscribe form @@ -273,7 +273,7 @@ if ($action == 'added') print $langs->trans("NewMemberbyWeb"); print ''; - llxFooterVierge('$Date: 2011/07/03 16:55:31 $ - $Revision: 1.31 $'); + llxFooterVierge('$Date: 2011/07/03 17:23:12 $ - $Revision: 1.32 $'); exit; } @@ -315,6 +315,13 @@ jQuery(document).ready(function () { } }; initmorphy(); + jQuery("#type").change(function() { + if (jQuery("#type").val()==1) { jQuery("#morphy").val(\'phy\'); jQuery(".trcompany").hide(); } + if (jQuery("#type").val()==2) { jQuery("#morphy").val(\'phy\'); jQuery(".trcompany").hide(); } + if (jQuery("#type").val()==3) { jQuery("#morphy").val(\'mor\'); jQuery(".trcompany").show(); } + if (jQuery("#type").val()==4) { jQuery("#morphy").val(\'mor\'); jQuery(".trcompany").show(); } + initmorphy(); + }); jQuery("#morphy").click(function() { initmorphy(); }); @@ -373,7 +380,7 @@ print '