Skip to content
Snippets Groups Projects
Unverified Commit f3adbe0a authored by Michael Lee's avatar Michael Lee Committed by GitHub
Browse files

Merge pull request #520 from ASCWebServices/canini-3

Discover Your Path bug fix
parents 0f334ad7 6a0af339
No related branches found
No related tags found
No related merge requests found
......@@ -309,13 +309,6 @@ function asc_bootstrap_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $
}
}
//discover you path
if ($form['#id'] == 'views-exposed-form-discover-your-path-page-1') {
//resets program to 'All' on submit so that program numbers don't zero out
//$form['field_ap_program_target_id']['#value'] = 'All';
}
//events
if ($form['#id'] == 'views-exposed-form-events-page-1') {
if(count($form['field_evt_taxonomy_target_id_1']['#options']) == 1) {
......
......@@ -14,6 +14,13 @@ jQuery(document).ready(function(){
jQuery("#views-exposed-form-discover-your-path-page-1 #edit-field-ap-interest-target-id-collapsible--content").attr("aria-expanded","true");
}
if (window.location.href.indexOf("field_ap_program_target_id") > -1) {
//hides submit button on Discover Your Path after user has made a interest selection
//this prevents a bug with the result counting for the various program buttons
//if user wants to select more/different interests they will need to reset the form
jQuery("#edit-submit-discover-your-path").css("display", "none");
}
//activates lightbox effect on gallery content type
jQuery(document).on('click', '[data-toggle="lightbox"]', function(event) {
event.preventDefault();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment