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
97e97743
Commit
97e97743
authored
Jan 29, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed tree view
parent
a77c8bf9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
app/assets/javascripts/tree.js
app/assets/javascripts/tree.js
+5
-5
app/assets/stylesheets/tree.scss
app/assets/stylesheets/tree.scss
+5
-0
No files found.
app/assets/javascripts/tree.js
View file @
97e97743
...
@@ -5,21 +5,21 @@
...
@@ -5,21 +5,21 @@
var
Tree
=
{
var
Tree
=
{
init
:
init
:
function
()
{
function
()
{
(
new
Image
).
src
=
"
ajax-loader-facebook.gif
"
;
(
new
Image
).
src
=
"
/assets/
ajax-loader-facebook.gif
"
;
$
(
'
#tree-slider
td.tree-item-file-name a, #tree-breadcrumbs
a
'
).
live
(
"
click
"
,
function
()
{
$
(
'
#tree-slider
.tree-item-file-name a, .breadcrumb
a
'
).
live
(
"
click
"
,
function
()
{
history
.
pushState
({
path
:
this
.
path
},
''
,
this
.
href
)
history
.
pushState
({
path
:
this
.
path
},
''
,
this
.
href
)
$
(
"
#tree-content-holder
"
).
hide
(
"
slide
"
,
{
direction
:
"
left
"
},
150
)
$
(
"
#tree-content-holder
"
).
hide
(
"
slide
"
,
{
direction
:
"
left
"
},
150
)
})
})
$
(
"
#tree-slider
tr
.tree-item
"
).
live
(
'
click
'
,
function
(
e
){
$
(
"
#tree-slider .tree-item
"
).
live
(
'
click
'
,
function
(
e
){
if
(
e
.
target
.
nodeName
!=
"
A
"
)
{
if
(
e
.
target
.
nodeName
!=
"
A
"
)
{
link
=
$
(
this
).
find
(
"
td
.tree-item-file-name a
"
);
link
=
$
(
this
).
find
(
"
.tree-item-file-name a
"
);
link
.
trigger
(
"
click
"
);
link
.
trigger
(
"
click
"
);
}
}
});
});
$
(
'
#tree-slider td.tree-item-file-name a,
#tree-breadcrumbs
a
'
).
live
({
$
(
'
#tree-slider td.tree-item-file-name a,
.breadcrumb
a
'
).
live
({
"
ajax:beforeSend
"
:
function
()
{
$
(
'
.tree_progress
'
).
addClass
(
"
loading
"
);
},
"
ajax:beforeSend
"
:
function
()
{
$
(
'
.tree_progress
'
).
addClass
(
"
loading
"
);
},
"
ajax:complete
"
:
function
()
{
$
(
'
.tree_progress
'
).
removeClass
(
"
loading
"
);
}
"
ajax:complete
"
:
function
()
{
$
(
'
.tree_progress
'
).
removeClass
(
"
loading
"
);
}
});
});
...
...
app/assets/stylesheets/tree.scss
View file @
97e97743
...
@@ -122,5 +122,10 @@ table.highlighttable .linenodiv pre {
...
@@ -122,5 +122,10 @@ table.highlighttable .linenodiv pre {
.tree-item-file-name
{
.tree-item-file-name
{
font-weight
:bold
;
font-weight
:bold
;
img
{
position
:
relative
;
top
:
2px
;
}
}
}
}
}
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