Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/_tree.html.haml')
-rw-r--r--app/views/projects/_tree.html.haml7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/projects/_tree.html.haml b/app/views/projects/_tree.html.haml
index af3a209a8ab..d84599ad0c1 100644
--- a/app/views/projects/_tree.html.haml
+++ b/app/views/projects/_tree.html.haml
@@ -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});