Skip to content

Commit

Permalink
Merge pull request nathanvda#16 from csegura/master
Browse files Browse the repository at this point in the history
Use this in association-insertion-node
  • Loading branch information
nathanvda committed Aug 25, 2011
2 parents 6142395 + 9dfedb4 commit 97daa1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/cocoon.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ $(document).ready(function() {
new_content = new_content.replace(regexp_underscord, newcontent_underscord);

if (insertionNode){
insertionNode = $(insertionNode);
insertionNode = insertionNode == "this" ? $(this) : $(insertionNode);
} else {
insertionNode = $(this).parent();
}
Expand Down

0 comments on commit 97daa1b

Please sign in to comment.