diff --git a/app/views/admin/auctions/show.html.erb b/app/views/admin/auctions/show.html.erb index 88a2a74e2..c09d5b5d2 100644 --- a/app/views/admin/auctions/show.html.erb +++ b/app/views/admin/auctions/show.html.erb @@ -39,7 +39,7 @@ <%= link_to t(:delete), admin_auction_path(@auction), method: :delete, data: { confirm: t(:are_you_sure) } , - remote: true, class: "ui button secondary" %> + class: "ui button secondary", target: '_top' %> <%- if @auction.result %> <%= link_to t(:result_name), admin_result_path(@auction.result), diff --git a/app/views/admin/bans/index.html.erb b/app/views/admin/bans/index.html.erb index 14d4b3a01..bc54efe28 100644 --- a/app/views/admin/bans/index.html.erb +++ b/app/views/admin/bans/index.html.erb @@ -63,7 +63,7 @@ <%= link_to t(:delete), admin_ban_path(ban), method: :delete, - data: { confirm: t(:are_you_sure) }, remote: true, + data: { confirm: t(:are_you_sure) }, target: '_top', class: "ui button secondary" %> <%= link_to t(:versions_name), admin_ban_versions_path(ban), class: "ui button primary" %> diff --git a/app/views/admin/users/show.html.erb b/app/views/admin/users/show.html.erb index e387f7b38..dc09d9c8b 100644 --- a/app/views/admin/users/show.html.erb +++ b/app/views/admin/users/show.html.erb @@ -108,7 +108,7 @@ <%= link_to t(:edit), edit_admin_user_path(@user), class: "ui button primary" %> <%= link_to t(:delete), admin_user_path(@user), method: :delete, data: { confirm: t(:are_you_sure) } , - remote: true, class: "ui button secondary" %> + class: "ui button secondary", target: '_top' %> <%= link_to t(:versions_name), admin_user_versions_path(@user), class: "ui button primary" %> diff --git a/app/views/auctions/show.html.erb b/app/views/auctions/show.html.erb index 63e3982ed..d75f8731a 100644 --- a/app/views/auctions/show.html.erb +++ b/app/views/auctions/show.html.erb @@ -46,7 +46,7 @@ <%= link_to t('auctions.edit_your_offer'), edit_offer_path(@auction.offer_from_user(current_user).uuid), class: "ui button primary" %> <%= link_to t('auctions.delete_your_offer'), - offer_path(@auction.offer_from_user(current_user).uuid), + offer_path(@auction.offer_from_user(current_user).uuid), target: '_top', method: :delete, data: { confirm: t(:are_you_sure) }, class: "ui button red"%> <% elsif @auction.in_progress? %> <%= link_to t('auctions.submit_offer'), diff --git a/app/views/billing_profiles/index.html.erb b/app/views/billing_profiles/index.html.erb index 4e17a8af4..50293994a 100644 --- a/app/views/billing_profiles/index.html.erb +++ b/app/views/billing_profiles/index.html.erb @@ -54,10 +54,10 @@ <% if billing_profile.deletable? %> <%= link_to t(:delete), billing_profile_path(billing_profile.uuid), method: :delete, data: { confirm: t(:are_you_sure) }, - remote: true, class: "ui button red" %> + class: "ui button red", target: '_top' %> <% else %> <%= content_tag :div, link_to(t(:delete), '#', class: "ui button secondary disabled"), - data: {tooltip: t('billing_profiles.in_use_by_offer_short'), inverted: ''} %> + data: {tooltip: t('billing_profiles.in_use_by_offer_short'), inverted: ''}, target: '_top' %> <% end %> diff --git a/app/views/billing_profiles/show.html.erb b/app/views/billing_profiles/show.html.erb index 6d75940c0..f4ba03efb 100644 --- a/app/views/billing_profiles/show.html.erb +++ b/app/views/billing_profiles/show.html.erb @@ -45,7 +45,7 @@ <%= link_to t(:edit), edit_billing_profile_path(@billing_profile.uuid), class: "ui button primary" %> <%= link_to t(:delete), billing_profile_path(@billing_profile.uuid), method: :delete, data: { confirm: t(:are_you_sure) }, - remote: true, class: "ui button red" %> + class: "ui button red", target: '_top' %> diff --git a/app/views/common/_header.html.erb b/app/views/common/_header.html.erb index dbf4cece8..4a71daf60 100644 --- a/app/views/common/_header.html.erb +++ b/app/views/common/_header.html.erb @@ -32,7 +32,7 @@