Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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