{*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
showHidePeriodSettings();
});
- showHideMaxRelated(cj('#relationship_type_id :selected').val());
- cj('#relationship_type_id').change(function(){
+ {/literal}
+ {if $action eq 2}
+ {literal}
+ showHideMaxRelated(cj('#relationship_type_id').val());
+ cj('#relationship_type_id').change(function(){
+ showHideMaxRelated(cj('#relationship_type_id').val());
+ });
+ {/literal}{else}{literal}
showHideMaxRelated(cj('#relationship_type_id :selected').val());
- });
+ cj('#relationship_type_id').change(function(){
+ showHideMaxRelated(cj('#relationship_type_id :selected').val());
+ });
+ {/literal}{/if}{literal}
});
function showHidePeriodSettings() {
}
if (!cj("#fixed_period_rollover_day_d").val()) {
cj("#fixed_period_rollover_day_d").val("31");
- }
+ }
cj("#month_fixed_rollover_day_row").val("");
}
else if ((cj("#period_type :selected").val() == "fixed" ) &&