Permalink
Browse files

permito pasarle una expresion jquery como target

  • Loading branch information...
1 parent 5818197 commit 207271f45f48de6262746d7f87ae5fa07e982018 @eeng committed Aug 12, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 vendor/assets/javascripts/jquery_nested_form.js
@@ -54,6 +54,7 @@
},
insertFields: function(content, assoc, link) {
var target = $(link).data('target');
+ if (target && target.substring(0, 1) == "$") target = eval(target);
if (target) {
return $(content).appendTo($(target));
} else {

0 comments on commit 207271f

Please sign in to comment.