Skip to content

Commit

Permalink
Merge pull request #2383 from fmh/patch-1
Browse files Browse the repository at this point in the history
Fix removal buttons within filtringselect parents
  • Loading branch information
mshibuya committed Aug 21, 2015
2 parents 67a782e + c5d615c commit 11c9cdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/rails_admin/ra.widgets.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ $(document).on 'rails_admin.dom_ready', (e, content) ->
content.find('[data-filteringmultiselect]').each ->
$(this).filteringMultiselect $(this).data('options')
if $(this).parents("#modal").length # hide link if we already are inside a dialog (endless issues on nested dialogs with JS)
$(this).parents('.control-group').find('.btn').remove()
$(this).siblings('.btn').remove()
else
$(this).parents('.control-group').first().remoteForm()

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

Expand Down

0 comments on commit 11c9cdd

Please sign in to comment.