branch/tag memorization
This commit is contained in:
parent
912a383d9b
commit
fc34fc86c6
5 changed files with 26 additions and 0 deletions
|
@ -13,3 +13,10 @@
|
|||
%h3{:style => "color:#555"} /#{params[:path]}
|
||||
%div{:id => dom_id(@project)}
|
||||
= render "commits"
|
||||
|
||||
|
||||
:javascript
|
||||
$(function(){
|
||||
$.cookie('branch', '#{params[:branch]}', { expires: 1 });
|
||||
$.cookie('tag', '#{params[:tag]}', { expires: 1 });
|
||||
});
|
||||
|
|
|
@ -45,6 +45,13 @@
|
|||
- contents.select{ |i| i.is_a?(Grit::Blob)}.each do |content|
|
||||
= render :partial => "projects/tree_item", :locals => { :content => content }
|
||||
|
||||
|
||||
:javascript
|
||||
$(function(){
|
||||
$.cookie('branch', '#{params[:branch]}', { expires: 1 });
|
||||
$.cookie('tag', '#{params[:tag]}', { expires: 1 });
|
||||
});
|
||||
|
||||
:javascript
|
||||
$(function(){
|
||||
$('select#branch').selectmenu({style:'popup', width:200});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue