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
601f6fbd
Commit
601f6fbd
authored
7 months ago
by
Michael Lee
Browse files
Options
Downloads
Patches
Plain Diff
Adjust BuckeyeAlert jQuery so it can properly load
parent
d019705f
No related branches found
Branches containing commit
No related tags found
1 merge request
!167
Adjust BuckeyeAlert jQuery so it can properly load
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
web/modules/custom/buckeye-alert-master/js/jquery.d8-buckeye-alert.js
+5
-6
5 additions, 6 deletions
...custom/buckeye-alert-master/js/jquery.d8-buckeye-alert.js
with
5 additions
and
6 deletions
web/modules/custom/buckeye-alert-master/js/jquery.d8-buckeye-alert.js
+
5
−
6
View file @
601f6fbd
...
...
@@ -3,19 +3,18 @@
attach
:
function
(
context
,
settings
)
{
// Only add alert if page is not embedded in another
if
(
window
.
location
==
window
.
parent
.
location
)
{
$
(
'
body
'
,
context
).
once
(
'
buckeye-alert-init
'
).
prepend
(
'
<div id="buckeye_alert"></div>
'
);
$
(
"
#buckeye_alert
"
).
once
(
'
buckeye-alert
'
).
buckeyeAlert
({
$
(
once
(
'
buckeye-alert-init
'
,
'
body
'
,
context
)).
prepend
(
'
<div id="buckeye_alert"></div>
'
);
$
(
once
(
'
buckeye-alert
'
,
'
#buckeye_alert
'
)).
buckeyeAlert
({
url
:
drupalSettings
.
buckeye_alert
.
feed_url
,
messageClass
:
drupalSettings
.
buckeye_alert
.
messageClass
,
animate
:
drupalSettings
.
buckeye_alert
.
animate
,
callback
:
function
()
{
callback
:
function
()
{
if
(
drupalSettings
.
buckeye_alert
.
additional
)
{
$
(
"
#buckeye_alert
"
).
find
(
"
#buckeye_alert_msg
"
).
append
(
'
<div id="buckeye_alert_extra">
'
+
drupalSettings
.
buckeye_alert
.
additional
+
'
</div>
'
);
$
(
"
#buckeye_alert
"
).
find
(
"
#buckeye_alert_msg
"
).
append
(
'
<div id="buckeye_alert_extra">
'
+
drupalSettings
.
buckeye_alert
.
additional
+
'
</div>
'
);
}
}
});
}
}
};
})(
jQuery
,
Drupal
,
drupalSettings
);
})(
jQuery
,
Drupal
,
drupalSettings
);
\ No newline at end of file
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