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