Revert "Revert "Fix middle-click on "Delete attachment" button""
This reverts commit 6e8bd6957f
.
This commit is contained in:
parent
d2811bdf73
commit
7e19dd2cda
3 changed files with 49 additions and 5 deletions
|
@ -5,6 +5,11 @@ class AttachmentsController < ApplicationController
|
|||
def show
|
||||
@attachment = @blob.attachments.find(params[:id])
|
||||
@user_can_upload = params[:user_can_upload]
|
||||
|
||||
respond_to do |format|
|
||||
format.js
|
||||
format.html { redirect_back(fallback_location: @attachment.record&.dossier || root_path) }
|
||||
end
|
||||
end
|
||||
|
||||
def destroy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue