Skip to content

Commit 11c9cdd

Browse files
committed
Merge pull request #2383 from fmh/patch-1
Fix removal buttons within filtringselect parents
2 parents 67a782e + c5d615c commit 11c9cdd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/assets/javascripts/rails_admin/ra.widgets.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ $(document).on 'rails_admin.dom_ready', (e, content) ->
6363
content.find('[data-filteringmultiselect]').each ->
6464
$(this).filteringMultiselect $(this).data('options')
6565
if $(this).parents("#modal").length # hide link if we already are inside a dialog (endless issues on nested dialogs with JS)
66-
$(this).parents('.control-group').find('.btn').remove()
66+
$(this).siblings('.btn').remove()
6767
else
6868
$(this).parents('.control-group').first().remoteForm()
6969

@@ -72,7 +72,7 @@ $(document).on 'rails_admin.dom_ready', (e, content) ->
7272
content.find('[data-filteringselect]').each ->
7373
$(this).filteringSelect $(this).data('options')
7474
if $(this).parents("#modal").length # hide link if we already are inside a dialog (endless issues on nested dialogs with JS)
75-
$(this).parents('.control-group').find('.btn').remove()
75+
$(this).siblings('.btn').remove()
7676
else
7777
$(this).parents('.control-group').first().remoteForm()
7878

0 commit comments

Comments
 (0)