diff --git a/app/views/assets/_asset_inline.html.erb b/app/views/assets/_asset_inline.html.erb index db5c7c335..5bafcee75 100644 --- a/app/views/assets/_asset_inline.html.erb +++ b/app/views/assets/_asset_inline.html.erb @@ -30,11 +30,9 @@ <% else %>

<%= t('assets.empty_office_file.description') %>

- <%= button_to(load_asset_path(asset), - method: :get, + <%= link_to(load_asset_path(asset), remote: true, - form_class: 'reload-asset', - class: 'btn btn-primary', + class: 'btn btn-primary reload-asset', params: { asset: {view_mode: asset.view_mode }}) do %> <%= t('assets.empty_office_file.reload') %> <% end %>