Commit | Line | Data |
---|---|---|
0514c86a J |
1 | // |
2 | cj(function ( $ ) { | |
3 | function setState() { | |
4 | if ($('#override').is(':checked') == true) { | |
5 | $('#custom_template').attr("disabled",false); | |
6 | } | |
7 | else { | |
8 | $('#custom_template').attr("disabled",true); | |
9 | } | |
1e92ea19 | 10 | if( $('#progress_bar').val() != "") { |
0514c86a J |
11 | $('#embd_code').parents('.crm-section').show(); |
12 | } else { | |
13 | $('#embd_code').parents('.crm-section').hide(); | |
14 | } | |
fbe9a7d4 J |
15 | |
16 | $('#image').after('<label><br><SMALL>Select a smaller image than Size variant</SMALL></label>'); | |
17 | $('#logo_image').after('<label><br><SMALL>Select smaller image appropriate for logo</SMALL></label>'); | |
9e2703a2 J |
18 | $('#email_signup_group_id').after("<label><br><SMALL>Those groups that are 'Mailing List' selected are shown.</SMALL></label>"); |
19 | $('#size_variant').after("<label><br><SMALL>Fixed width. Height depends on what contents selected.</SMALL></label>"); | |
355ba3d6 | 20 | $('#hide_border').after("<label><br>To get transparent background give <strong>none</strong> in the Background color field.</label>"); |
0514c86a J |
21 | } |
22 | $(document).ready(setState) | |
23 | $('#override').click(setState); | |
24 | ||
25 | }); | |
26 |