Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
fix js
Browse files Browse the repository at this point in the history
  • Loading branch information
PanfilovDenis committed Feb 15, 2013
1 parent 2e20659 commit 925075a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ gem 'state_machine'
gem 'untranslated'
gem 'configus'
gem 'russian'
gem 'js-routes'

# Gems used only for assets and not required
# in production environments by default.
Expand Down
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ GEM
jquery-ui-rails (2.0.2)
jquery-rails
railties (>= 3.1.0)
js-routes (0.8.5)
rails (>= 3.2)
json (1.7.6)
kgio (2.7.4)
less (2.2.2)
Expand Down Expand Up @@ -239,6 +241,7 @@ DEPENDENCIES
jbuilder
jquery-rails
jquery-ui-rails
js-routes
less-rails
mini_magick
minitest
Expand Down
1 change: 1 addition & 0 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
//= require_tree .
//= require jquery.ui.all
//= require ckeditor/init
//= require js-routes
//= require_tree ./mania-js
4 changes: 2 additions & 2 deletions app/assets/javascripts/bootstrap.js.coffee
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
jQuery ->

$('input#user_company').autocomplete
source: "/api/companies"
source: Routes.api_companies_path()
minLength: 2

$('input#user_city').autocomplete
source: "/api/cities"
source: Routes.api_cities_path()
minLength: 2

$("a[rel=popover]").popover()
Expand Down

0 comments on commit 925075a

Please sign in to comment.