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
6bdcaccb
Commit
6bdcaccb
authored
Dec 20, 2011
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Handle back & forward events"
This reverts commit
f80745b7
.
parent
f80745b7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
13 deletions
+16
-13
app/assets/javascripts/application.js
app/assets/javascripts/application.js
+1
-9
app/controllers/dashboard_controller.rb
app/controllers/dashboard_controller.rb
+3
-3
app/controllers/refs_controller.rb
app/controllers/refs_controller.rb
+4
-1
app/views/refs/_tree.html.haml
app/views/refs/_tree.html.haml
+8
-0
No files found.
app/assets/javascripts/application.js
View file @
6bdcaccb
...
@@ -50,16 +50,8 @@ $(document).ready(function(){
...
@@ -50,16 +50,8 @@ $(document).ready(function(){
e
.
preventDefault
();
e
.
preventDefault
();
}
}
});
});
});
if
(
history
&&
history
.
pushState
)
{
$
(
function
()
{
$
(
window
).
bind
(
"
popstate
"
,
function
()
{
$
.
getScript
(
location
.
href
);
});
});
});
}
function
focusSearch
()
{
function
focusSearch
()
{
$
(
"
#search
"
).
focus
();
$
(
"
#search
"
).
focus
();
...
...
app/controllers/dashboard_controller.rb
View file @
6bdcaccb
...
@@ -7,7 +7,7 @@ class DashboardController < ApplicationController
...
@@ -7,7 +7,7 @@ class DashboardController < ApplicationController
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
format
.
html
format
.
js
format
.
js
{
no_cache_headers
}
end
end
end
end
...
@@ -18,7 +18,7 @@ class DashboardController < ApplicationController
...
@@ -18,7 +18,7 @@ class DashboardController < ApplicationController
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
format
.
html
format
.
js
format
.
js
{
no_cache_headers
}
end
end
end
end
...
@@ -32,7 +32,7 @@ class DashboardController < ApplicationController
...
@@ -32,7 +32,7 @@ class DashboardController < ApplicationController
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
format
.
html
format
.
js
format
.
js
{
no_cache_headers
}
format
.
atom
{
render
:layout
=>
false
}
format
.
atom
{
render
:layout
=>
false
}
end
end
end
end
...
...
app/controllers/refs_controller.rb
View file @
6bdcaccb
...
@@ -26,7 +26,10 @@ class RefsController < ApplicationController
...
@@ -26,7 +26,10 @@ class RefsController < ApplicationController
def
tree
def
tree
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
format
.
html
format
.
js
format
.
js
do
# disable cache to allow back button works
no_cache_headers
end
end
end
rescue
rescue
return
render_404
return
render_404
...
...
app/views/refs/_tree.html.haml
View file @
6bdcaccb
...
@@ -49,3 +49,11 @@
...
@@ -49,3 +49,11 @@
$
(
'
select#branch
'
).
selectmenu
({
style
:
'
popup
'
,
width
:
200
});
$
(
'
select#branch
'
).
selectmenu
({
style
:
'
popup
'
,
width
:
200
});
$
(
'
select#tag
'
).
selectmenu
({
style
:
'
popup
'
,
width
:
200
});
$
(
'
select#tag
'
).
selectmenu
({
style
:
'
popup
'
,
width
:
200
});
});
});
-
if
params
[
:path
]
&&
request
.
xhr?
:javascript
$
(
window
).
unbind
(
'
popstate
'
);
$
(
window
).
bind
(
'
popstate
'
,
function
()
{
if
(
location
.
pathname
.
search
(
"
tree
"
)
!=
-
1
)
{
$
.
ajax
({
type
:
"
GET
"
,
url
:
location
.
pathname
,
dataType
:
"
script
"
})}
else
{
location
.
href
=
location
.
pathname
;}});
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