Skip to content

Commit

Permalink
Fix remove link helper to check all ancestors.
Browse files Browse the repository at this point in the history
  • Loading branch information
nixme committed Jun 4, 2008
1 parent 7c78a2a commit 93d3c81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/attribute_fu/associated_form_helper.rb
Expand Up @@ -54,7 +54,7 @@ def remove_link(name, *args)
css_selector = options.delete(:selector) || ".#{@object.class.name.split("::").last.underscore}"
function = options.delete(:function) || ""

function << "$(this).parent(&quot;#{css_selector}&quot;).remove()"
function << "$(this).parents(&quot;#{css_selector}&quot;).remove()"

@template.link_to_function(name, function, *args.push(options))
end
Expand Down

0 comments on commit 93d3c81

Please sign in to comment.