Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-notice
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-notice
Merge requests
!15
Feature/notice dismiss link
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Feature/notice dismiss link
feature/notice-dismiss-link
into
master
Overview
0
Commits
11
Pipelines
1
Changes
3
Merged
Krzysztof Dyszczyk
requested to merge
feature/notice-dismiss-link
into
master
6 years ago
Overview
0
Commits
11
Pipelines
1
Changes
3
0
0
Merge request reports
Viewing commit
5d5ada79
Prev
Next
Show latest version
3 files
+
2
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
5d5ada79
Added notice dismiss link.
· 5d5ada79
Grzegorz Rola
authored
6 years ago
assets/js/notice.js
+
0
−
3
View file @ 5d5ada79
Edit in single-file editor
Open in Web IDE
Show full file
jQuery
(
document
).
on
(
'
click
'
,
'
.notice-dismiss
'
,
function
()
{
var
notice_name
=
jQuery
(
this
).
closest
(
'
div.notice
'
).
data
(
'
notice-name
'
);
var
source
=
jQuery
(
this
).
closest
(
'
div.notice
'
).
data
(
'
source
'
);
console
.
log
(
'
d
'
);
console
.
log
(
source
);
if
(
''
!==
notice_name
)
{
jQuery
.
ajax
({
url
:
ajaxurl
,
@@ -19,7 +17,6 @@ console.log(source);
});
jQuery
(
document
).
on
(
'
click
'
,
'
.notice-dismiss-link
'
,
function
()
{
console
.
log
(
jQuery
(
this
).
data
(
'
source
'
));
jQuery
(
this
).
closest
(
'
div.notice
'
).
data
(
'
source
'
,
jQuery
(
this
).
data
(
'
source
'
));
jQuery
(
this
).
closest
(
'
div.notice
'
).
find
(
'
.notice-dismiss
'
).
click
();
});
Loading