#345: Fixed JS
This commit is contained in:
parent
4c398ab710
commit
e7f8fb6312
1
Gemfile
1
Gemfile
|
@ -51,6 +51,7 @@ gem 'will_paginate', '~> 3.0.5'
|
|||
gem 'meta-tags', '~> 1.5', require: 'meta_tags'
|
||||
gem "haml-rails", '~> 0.5'
|
||||
gem 'jquery-rails', '~> 2.3.0'
|
||||
gem 'jquery-migrate-rails'
|
||||
gem 'ruby-haml-js', '~> 0.0.5'
|
||||
gem 'friendly_id', '~> 5.0.3'
|
||||
|
||||
|
|
|
@ -170,6 +170,7 @@ GEM
|
|||
jbuilder (2.0.3)
|
||||
activesupport (>= 3.0.0)
|
||||
multi_json (>= 1.2.0)
|
||||
jquery-migrate-rails (1.2.1)
|
||||
jquery-rails (2.3.0)
|
||||
railties (>= 3.0, < 5.0)
|
||||
thor (>= 0.14, < 2.0)
|
||||
|
@ -479,6 +480,7 @@ DEPENDENCIES
|
|||
highline (~> 1.6.20)
|
||||
hirb
|
||||
jbuilder (~> 2.0.3)
|
||||
jquery-migrate-rails
|
||||
jquery-rails (~> 2.3.0)
|
||||
js-routes
|
||||
localeapp
|
||||
|
|
|
@ -14,15 +14,15 @@ var ProjectRef = function(atts) {
|
|||
self.ui_container = false;
|
||||
|
||||
self.path = function(project) {
|
||||
return Routes.tree_path(project.owner.uname, project.name, self.ref);
|
||||
return Routes.tree_path(project.fullname, self.ref);
|
||||
}
|
||||
|
||||
self.diff_path = function(project, current_ref) {
|
||||
return Routes.diff_path(project.owner.uname, project.name, current_ref + '...' + self.ref);
|
||||
return Routes.diff_path(project.fullname, current_ref + '...' + self.ref);
|
||||
}
|
||||
|
||||
self.archive_path = function(project, type) {
|
||||
return Routes.archive_path(project.owner.uname, project.name, project.name + '-' + self.ref, {format: type});
|
||||
return Routes.archive_path(project.fullname, project.name + '-' + self.ref, {format: type});
|
||||
}
|
||||
|
||||
//return the scope-safe instance
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
//= require jquery
|
||||
//= require jquery-migrate-min
|
||||
//= require jquery_ujs
|
||||
//= require jquery-ui
|
||||
//= require autocomplete-rails
|
||||
|
|
Loading…
Reference in New Issue