diff --git a/resources/views/attachments/manager-edit-form.blade.php b/resources/views/attachments/manager-edit-form.blade.php index f3f11a0fc..ee86dc240 100644 --- a/resources/views/attachments/manager-edit-form.blade.php +++ b/resources/views/attachments/manager-edit-form.blade.php @@ -1,6 +1,7 @@ <div component="ajax-form" option:ajax-form:url="/attachments/{{ $attachment->id }}" option:ajax-form:method="put" + option:ajax-form:response-container=".attachment-edit-container" option:ajax-form:success-message="{{ trans('entities.attachments_updated_success') }}"> <h5>{{ trans('entities.attachments_edit_file') }}</h5> diff --git a/resources/views/attachments/manager-link-form.blade.php b/resources/views/attachments/manager-link-form.blade.php index 6f22abb32..b51daa40e 100644 --- a/resources/views/attachments/manager-link-form.blade.php +++ b/resources/views/attachments/manager-link-form.blade.php @@ -4,6 +4,7 @@ <div component="ajax-form" option:ajax-form:url="/attachments/link" option:ajax-form:method="post" + option:ajax-form:response-container=".link-form-container" option:ajax-form:success-message="{{ trans('entities.attachments_link_attached') }}"> <input type="hidden" name="attachment_link_uploaded_to" value="{{ $pageId }}"> <p class="text-muted small">{{ trans('entities.attachments_explain_link') }}</p> diff --git a/resources/views/attachments/manager.blade.php b/resources/views/attachments/manager.blade.php index 4bfa97608..4628f7495 100644 --- a/resources/views/attachments/manager.blade.php +++ b/resources/views/attachments/manager.blade.php @@ -24,14 +24,14 @@ 'successMessage' => trans('entities.attachments_file_uploaded'), ]) </div> - <div refs="tabs@contentLinks" class="hidden"> + <div refs="tabs@contentLinks" class="hidden link-form-container"> @include('attachments.manager-link-form', ['pageId' => $page->id]) </div> </div> </div> - <div refs="attachments@editContainer" class="hidden"> + <div refs="attachments@editContainer" class="hidden attachment-edit-container"> </div>