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
8ee6d21f
Commit
8ee6d21f
authored
Dec 12, 2011
by
Dmitriy Zaporozhets
Committed by
Jeremy Mack
Dec 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lil js refactoring
parent
a39fb5fc
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
16 deletions
+26
-16
app/assets/javascripts/merge_requests.js
app/assets/javascripts/merge_requests.js
+0
-0
app/assets/javascripts/merge_requests.js.coffee
app/assets/javascripts/merge_requests.js.coffee
+0
-3
app/assets/javascripts/projects.js
app/assets/javascripts/projects.js
+0
-13
app/assets/javascripts/tree.js
app/assets/javascripts/tree.js
+21
-0
app/views/refs/tree.html.haml
app/views/refs/tree.html.haml
+5
-0
No files found.
app/assets/javascripts/merge_requests.js
0 → 100644
View file @
8ee6d21f
app/assets/javascripts/merge_requests.js.coffee
deleted
100644 → 0
View file @
a39fb5fc
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
app/assets/javascripts/projects.js
View file @
8ee6d21f
$
(
document
).
ready
(
function
(){
$
(
'
#tree-slider td.tree-item-file-name a, #tree-breadcrumbs a
'
).
live
(
"
click
"
,
function
()
{
history
.
pushState
({
path
:
this
.
path
},
''
,
this
.
href
)
})
$
(
"
#tree-slider tr.tree-item
"
).
live
(
'
click
'
,
function
(
e
){
if
(
e
.
target
.
nodeName
!=
"
A
"
)
{
e
.
stopPropagation
();
link
=
$
(
this
).
find
(
"
td.tree-item-file-name a
"
)
link
.
click
();
return
false
;
}
});
$
(
"
#projects-list .project
"
).
live
(
'
click
'
,
function
(
e
){
if
(
e
.
target
.
nodeName
!=
"
A
"
&&
e
.
target
.
nodeName
!=
"
INPUT
"
)
{
location
.
href
=
$
(
this
).
attr
(
"
url
"
);
...
...
app/assets/javascripts/tree.js
0 → 100644
View file @
8ee6d21f
/**
* Tree slider for code browse
*
*/
var
Tree
=
{
init
:
function
()
{
$
(
'
#tree-slider td.tree-item-file-name a, #tree-breadcrumbs a
'
).
live
(
"
click
"
,
function
()
{
history
.
pushState
({
path
:
this
.
path
},
''
,
this
.
href
)
})
$
(
"
#tree-slider tr.tree-item
"
).
live
(
'
click
'
,
function
(
e
){
if
(
e
.
target
.
nodeName
!=
"
A
"
)
{
e
.
stopPropagation
();
link
=
$
(
this
).
find
(
"
td.tree-item-file-name a
"
);
link
.
click
();
return
false
;
}
});
}
}
app/views/refs/tree.html.haml
View file @
8ee6d21f
#tree-holder
=
render
:partial
=>
"tree"
,
:locals
=>
{
:repo
=>
@repo
,
:commit
=>
@commit
,
:tree
=>
@tree
}
:javascript
$
(
function
()
{
Tree
.
init
();
});
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