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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
a23db42e
Commit
a23db42e
authored
Jul 06, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor Star class to ES module syntax
parent
d990df74
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+1
-1
app/assets/javascripts/star.js
app/assets/javascripts/star.js
+1
-3
No files found.
app/assets/javascripts/dispatcher.js
View file @
a23db42e
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
/* global ProjectAvatar */
/* global ProjectAvatar */
/* global CompareAutocomplete */
/* global CompareAutocomplete */
/* global ProjectNew */
/* global ProjectNew */
/* global Star */
/* global ProjectShow */
/* global ProjectShow */
/* global Labels */
/* global Labels */
/* global Shortcuts */
/* global Shortcuts */
...
@@ -51,6 +50,7 @@ import UsersSelect from './users_select';
...
@@ -51,6 +50,7 @@ import UsersSelect from './users_select';
import
RefSelectDropdown
from
'
./ref_select_dropdown
'
;
import
RefSelectDropdown
from
'
./ref_select_dropdown
'
;
import
GfmAutoComplete
from
'
./gfm_auto_complete
'
;
import
GfmAutoComplete
from
'
./gfm_auto_complete
'
;
import
ShortcutsBlob
from
'
./shortcuts_blob
'
;
import
ShortcutsBlob
from
'
./shortcuts_blob
'
;
import
Star
from
'
./star
'
;
import
Todos
from
'
./todos
'
;
import
Todos
from
'
./todos
'
;
import
TreeView
from
'
./tree
'
;
import
TreeView
from
'
./tree
'
;
import
UsagePing
from
'
./usage_ping
'
;
import
UsagePing
from
'
./usage_ping
'
;
...
...
app/assets/javascripts/star.js
View file @
a23db42e
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-unused-vars, one-var, no-var, one-var-declaration-per-line, prefer-arrow-callback, no-new, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-unused-vars, one-var, no-var, one-var-declaration-per-line, prefer-arrow-callback, no-new, max-len */
/* global Flash */
/* global Flash */
class
Star
{
export
default
class
Star
{
constructor
()
{
constructor
()
{
$
(
'
.project-home-panel .toggle-star
'
).
on
(
'
ajax:success
'
,
function
(
e
,
data
,
status
,
xhr
)
{
$
(
'
.project-home-panel .toggle-star
'
).
on
(
'
ajax:success
'
,
function
(
e
,
data
,
status
,
xhr
)
{
var
$starIcon
,
$starSpan
,
$this
,
toggleStar
;
var
$starIcon
,
$starSpan
,
$this
,
toggleStar
;
...
@@ -24,5 +24,3 @@ class Star {
...
@@ -24,5 +24,3 @@ class Star {
});
});
}
}
}
}
window
.
Star
=
Star
;
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