From 7821a6bb8fdacce61f4882b7b92d7456a9206365 Mon Sep 17 00:00:00 2001 From: gray Date: Mon, 26 Sep 2011 12:01:20 +0300 Subject: [PATCH] Use safe jQuery & remove document ready --- app/assets/javascripts/cocoon.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/cocoon.js b/app/assets/javascripts/cocoon.js index 6f5add3..fbb2e49 100644 --- a/app/assets/javascripts/cocoon.js +++ b/app/assets/javascripts/cocoon.js @@ -1,4 +1,4 @@ -$(document).ready(function() { +(function($) { function replace_in_content(content, regexp_str, with_str) { reg_exp = new RegExp(regexp_str); @@ -58,4 +58,4 @@ $(document).ready(function() { $(this).closest(".nested-fields").hide(); }); -}); \ No newline at end of file +})(jQuery); \ No newline at end of file