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
Jérome Perrin
gitlab-ce
Commits
c2255c57
Commit
c2255c57
authored
7 years ago
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor tree.js to use ES class syntax
parent
007d2f70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
app/assets/javascripts/tree.js
app/assets/javascripts/tree.js
+7
-7
No files found.
app/assets/javascripts/tree.js
View file @
c2255c57
/* eslint-disable func-names, space-before-function-paren, wrap-iife, max-len, quotes, consistent-return, no-var, one-var, one-var-declaration-per-line, no-else-return, prefer-arrow-callback,
max-len
*/
/* eslint-disable func-names, space-before-function-paren, wrap-iife, max-len, quotes, consistent-return, no-var, one-var, one-var-declaration-per-line, no-else-return, prefer-arrow-callback,
class-methods-use-this
*/
window
.
TreeView
=
(
function
()
{
function
TreeView
()
{
class
TreeView
{
constructor
()
{
this
.
initKeyNav
();
// Code browser tree slider
// Make the entire tree-item row clickable, but not if clicking another link (like a commit message)
...
...
@@ -22,7 +22,7 @@ window.TreeView = (function() {
$
(
'
span.log_loading:first
'
).
removeClass
(
'
hide
'
);
}
TreeView
.
prototype
.
initKeyNav
=
function
()
{
initKeyNav
()
{
var
li
,
liSelected
;
li
=
$
(
"
tr.tree-item
"
);
liSelected
=
null
;
...
...
@@ -60,7 +60,7 @@ window.TreeView = (function() {
}
}
});
};
}
}
return
TreeView
;
})();
window
.
TreeView
=
TreeView
;
This diff is collapsed.
Click to expand it.
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