Add option to use this in association-insertion-node

This commit is contained in:
Carlos Segura 2011-08-25 00:57:20 +02:00
parent 6142395878
commit 9dfedb4733
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}