Handle back & forward events
This commit is contained in:
parent
321dbb7bac
commit
f80745b7db
4 changed files with 13 additions and 16 deletions
|
@ -7,7 +7,7 @@ class DashboardController < ApplicationController
|
|||
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.js { no_cache_headers }
|
||||
format.js
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -18,7 +18,7 @@ class DashboardController < ApplicationController
|
|||
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.js { no_cache_headers }
|
||||
format.js
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -32,7 +32,7 @@ class DashboardController < ApplicationController
|
|||
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.js { no_cache_headers }
|
||||
format.js
|
||||
format.atom { render :layout => false }
|
||||
end
|
||||
end
|
||||
|
|
|
@ -26,10 +26,7 @@ class RefsController < ApplicationController
|
|||
def tree
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.js do
|
||||
# disable cache to allow back button works
|
||||
no_cache_headers
|
||||
end
|
||||
format.js
|
||||
end
|
||||
rescue
|
||||
return render_404
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue