Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drupal Upstream
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASC IRIS Web Services
Drupal Upstream
Commits
f3adbe0a
Unverified
Commit
f3adbe0a
authored
2 years ago
by
Michael Lee
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request
#520
from ASCWebServices/canini-3
Discover Your Path bug fix
parents
0f334ad7
6a0af339
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
web/themes/asc_bootstrap/asc_bootstrap.theme
+0
-7
0 additions, 7 deletions
web/themes/asc_bootstrap/asc_bootstrap.theme
web/themes/asc_bootstrap/js/scripts.js
+7
-0
7 additions, 0 deletions
web/themes/asc_bootstrap/js/scripts.js
with
7 additions
and
7 deletions
web/themes/asc_bootstrap/asc_bootstrap.theme
+
0
−
7
View file @
f3adbe0a
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
web/themes/asc_bootstrap/js/scripts.js
+
7
−
0
View file @
f3adbe0a
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment