From a7412cd1623468ebb4001e69cb93d787f3fe0576 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Sun, 30 Dec 2012 22:56:05 -0500 Subject: [PATCH] initialization code for best_in_place --- app/assets/javascripts/application.js | 2 ++ app/assets/javascripts/items.js.coffee | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index fcdd7576..d2332f6c 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -12,6 +12,8 @@ // //= require jquery //= require jquery-ui +//= require jquery.purr +//= require best_in_place //= require autocomplete-rails-uncompressed //= require jquery_ujs //= require_tree . diff --git a/app/assets/javascripts/items.js.coffee b/app/assets/javascripts/items.js.coffee index 416905ae..854c5d55 100644 --- a/app/assets/javascripts/items.js.coffee +++ b/app/assets/javascripts/items.js.coffee @@ -1,3 +1,6 @@ # 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/ \ No newline at end of file +# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ + +jQuery -> + $('.best_in_place').best_in_place()