Skip to content

Commit

Permalink
korma
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiansen committed Jul 7, 2012
1 parent 4f4b2d8 commit d7d04c9
Show file tree
Hide file tree
Showing 10 changed files with 802 additions and 5 deletions.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -20,6 +20,7 @@ group :assets do
# gem 'therubyracer', :platforms => :ruby

gem 'uglifier', '>= 1.0.3'
gem 'jquery-ui-rails'
end

gem 'jquery-rails'
Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Expand Up @@ -48,6 +48,9 @@ GEM
jquery-rails (2.0.2)
railties (>= 3.2.0, < 5.0)
thor (~> 0.14)
jquery-ui-rails (1.0.0)
jquery-rails
railties (>= 3.1.0)
json (1.7.3)
less (2.2.1)
commonjs (~> 0.2.6)
Expand Down Expand Up @@ -125,6 +128,7 @@ PLATFORMS
DEPENDENCIES
coffee-rails (~> 3.2.1)
jquery-rails
jquery-ui-rails
omniauth
rails (= 3.2.6)
rest-client
Expand Down
3 changes: 3 additions & 0 deletions app/assets/javascripts/application.js
Expand Up @@ -14,3 +14,6 @@
//= require jquery_ujs
//= require twitter/bootstrap
//= require_tree .
//= require jquery.infinitescroll
//= require friends
//= require jquery.ui.all
7 changes: 7 additions & 0 deletions app/assets/javascripts/friends.js.coffee
@@ -1,3 +1,10 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/

$ ->
$(".recommendation").draggable()
$("#trash").droppable
drop: (event, ui) ->
console.log($(ui.draggable)[0].getAttribute("data-item-id"))
$(ui.draggable).remove()

0 comments on commit d7d04c9

Please sign in to comment.