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

View File

@ -29,7 +29,7 @@ $(document).ready(function() {
new_content = new_content.replace(regexp_underscord, newcontent_underscord); new_content = new_content.replace(regexp_underscord, newcontent_underscord);
if (insertionNode){ if (insertionNode){
insertionNode = $(insertionNode); insertionNode = insertionNode == "this" ? $(this) : $(insertionNode);
} else { } else {
insertionNode = $(this).parent(); insertionNode = $(this).parent();
} }