Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
extensions
cc.tadpole.petitionemail
Commits
c81f160b
Commit
c81f160b
authored
Nov 21, 2014
by
Jamie McClelland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updating js to work on civi 4.5
parent
c773b1d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
petitionemail.js
petitionemail.js
+9
-9
No files found.
petitionemail.js
View file @
c81f160b
...
...
@@ -33,17 +33,17 @@ function populateUserFieldOptions() {
}
function
showHideEmailPetition
()
{
if
(
cj
(
"
input#email_petition
"
).
attr
(
"
checked
"
)
)
{
cj
(
"
tr.crm-campaign-survey-form-block-location_type_id
"
).
show
(
"
fast
"
);
cj
(
"
tr.crm-campaign-survey-form-block-recipient_options
"
).
show
(
"
fast
"
);
cj
(
"
tr.crm-campaign-survey-form-block-message_field
"
).
show
(
"
fast
"
);
cj
(
"
tr.crm-campaign-survey-form-block-default_message
"
).
show
(
"
fast
"
);
if
(
cj
(
"
input#email_petition:checked
"
).
length
==
1
)
{
cj
(
"
tr.crm-campaign-survey-form-block-subject
"
).
show
(
"
fast
"
);
cj
(
"
tr.crm-campaign-survey-form-block-subject_field
"
).
show
(
"
fast
"
);
cj
(
"
tr.crm-campaign-survey-form-block-default_message
"
).
show
(
"
fast
"
);
cj
(
"
tr.crm-campaign-survey-form-block-message_field
"
).
show
(
"
fast
"
);
cj
(
"
tr.crm-campaign-survey-form-block-recipient_options
"
).
show
(
"
fast
"
);
}
else
{
cj
(
"
tr.crm-campaign-survey-form-block-location_type_id
"
).
hide
(
"
fast
"
);
cj
(
"
tr.crm-campaign-survey-form-block-recipient_options
"
).
hide
(
"
fast
"
);
cj
(
"
tr.crm-campaign-survey-form-block-message_field
"
).
hide
(
"
fast
"
);
cj
(
"
tr.crm-campaign-survey-form-block-default_message
"
).
hide
(
"
fast
"
);
cj
(
"
tr.crm-campaign-survey-form-block-subject
"
).
hide
(
"
fast
"
);
cj
(
"
tr.crm-campaign-survey-form-block-subject_field
"
).
hide
(
"
fast
"
);
cj
(
"
tr.crm-campaign-survey-form-block-default_message
"
).
hide
(
"
fast
"
);
cj
(
"
tr.crm-campaign-survey-form-block-message_field
"
).
hide
(
"
fast
"
);
cj
(
"
tr.crm-campaign-survey-form-block-recipient_options
"
).
hide
(
"
fast
"
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment