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
5530d801
Commit
5530d801
authored
Jun 30, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor VersionCheckImage class to ES module syntax
parent
6149c2e2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
5 deletions
+2
-5
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+2
-1
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+0
-1
app/assets/javascripts/version_check_image.js
app/assets/javascripts/version_check_image.js
+0
-3
No files found.
app/assets/javascripts/dispatcher.js
View file @
5530d801
...
...
@@ -53,6 +53,7 @@ import UsersSelect from './users_select';
import
RefSelectDropdown
from
'
./ref_select_dropdown
'
;
import
GfmAutoComplete
from
'
./gfm_auto_complete
'
;
import
ShortcutsBlob
from
'
./shortcuts_blob
'
;
import
VersionCheckImage
from
'
./version_check_image
'
;
import
Wikis
from
'
./wikis
'
;
import
ZenMode
from
'
./zen_mode
'
;
import
initSettingsPanels
from
'
./settings_panels
'
;
...
...
@@ -380,7 +381,7 @@ import OAuthRememberMe from './oauth_remember_me';
new
BlobViewer
();
break
;
case
'
help:index
'
:
gl
.
VersionCheckImage
.
bindErrorEvent
(
$
(
'
img.js-version-status-badge
'
));
VersionCheckImage
.
bindErrorEvent
(
$
(
'
img.js-version-status-badge
'
));
break
;
case
'
search:show
'
:
new
Search
();
...
...
app/assets/javascripts/main.js
View file @
5530d801
...
...
@@ -159,7 +159,6 @@ import './user';
import
'
./user_tabs
'
;
import
'
./username_validator
'
;
import
'
./users_select
'
;
import
'
./version_check_image
'
;
// eslint-disable-next-line global-require, import/no-commonjs
if
(
process
.
env
.
NODE_ENV
!==
'
production
'
)
require
(
'
./test_utils/
'
);
...
...
app/assets/javascripts/version_check_image.js
View file @
5530d801
...
...
@@ -3,6 +3,3 @@ export default class VersionCheckImage {
imageElement
.
off
(
'
error
'
).
on
(
'
error
'
,
()
=>
imageElement
.
hide
());
}
}
window
.
gl
=
window
.
gl
||
{};
gl
.
VersionCheckImage
=
VersionCheckImage
;
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