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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
1898cb03
Commit
1898cb03
authored
Jun 21, 2016
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added global ajax error handler to show a flash notification for failed requests.
parent
2527ae6c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
CHANGELOG
CHANGELOG
+1
-0
app/assets/javascripts/application.js.coffee
app/assets/javascripts/application.js.coffee
+9
-0
No files found.
CHANGELOG
View file @
1898cb03
...
...
@@ -145,6 +145,7 @@ v 8.9.0 (unreleased)
- Filter parameters for request_uri value on instrumented transactions.
- Remove duplicated keys add UNIQUE index to keys fingerprint column
- ExtractsPath get ref_names from repository cache, if not there access git.
- Show a flash warning about the error detail of XHR requests which failed with status code 404 and 500
- Cache user todo counts from TodoService
- Ensure Todos counters doesn't count Todos for projects pending delete
- Add left/right arrows horizontal navigation
...
...
app/assets/javascripts/application.js.coffee
View file @
1898cb03
...
...
@@ -185,6 +185,15 @@ $ ->
else
buttons
.
enable
()
$
(
document
).
ajaxError
(
e
,
xhrObj
,
xhrSetting
,
xhrErrorText
)
->
if
xhrObj
.
status
is
401
new
Flash
'You need to be logged in.'
,
'alert'
else
if
xhrObj
.
status
in
[
404
,
500
]
new
Flash
'Something went wrong on our end.'
,
'alert'
# Show/Hide the profile menu when hovering the account box
$
(
'.account-box'
).
hover
->
$
(
@
).
toggleClass
(
'hover'
)
...
...
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