Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b4881db0
Commit
b4881db0
authored
Aug 19, 2020
by
Ezekiel Kigbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace window flash function with new flash
parent
b1b0ac0a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/flash.js
app/assets/javascripts/flash.js
+1
-1
app/views/profiles/preferences/update.js.erb
app/views/profiles/preferences/update.js.erb
+2
-2
app/views/projects/tags/destroy.js.haml
app/views/projects/tags/destroy.js.haml
+1
-1
No files found.
app/assets/javascripts/flash.js
View file @
b4881db0
...
...
@@ -175,4 +175,4 @@ export {
removeFlashClickListener
,
FLASH_TYPES
,
};
window
.
Flash
=
deprecatedC
reateFlash
;
window
.
Flash
=
c
reateFlash
;
app/views/profiles/preferences/update.js.erb
View file @
b4881db0
...
...
@@ -14,7 +14,7 @@ $('input[type=submit]').enable()
// Show flash messages
<%
if
flash
.
notice
%>
new Flash(
'
<%=
flash
.
discard
(
:notice
)
%>
', 'notice'
)
new Flash(
{ message: '
<%=
flash
.
discard
(
:notice
)
%>
', type: 'notice'}
)
<%
elsif
flash
.
alert
%>
new Flash(
'
<%=
flash
.
discard
(
:alert
)
%>
', 'alert'
)
new Flash(
{ message: '
<%=
flash
.
discard
(
:alert
)
%>
', type: 'alert'}
)
<%
end
%>
app/views/projects/tags/destroy.js.haml
View file @
b4881db0
-
if
@error
.
present?
new Flash(
'
#{
escape_javascript
(
@error
)
}
', 'alert'
);
new Flash(
{ message: '
#{
escape_javascript
(
@error
)
}
', type: 'alert' }
);
-
elsif
@repository
.
tags
.
empty?
$('.tags').load(document.URL + ' .nothing-here-block').hide().fadeIn(1000)
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