diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-08-01 11:50:59 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-08-01 11:50:59 +0300 |
commit | 423d31a300370c9c0acd9e8faae4d7bda2ac7d61 (patch) | |
tree | 733b732407f6f682edd875e3915af5e638cfce7d /app/assets/javascripts/blob_edit | |
parent | 5000c4ff4a04007b09bacbc5b5889d1ae3de4e59 (diff) |
Inline script cleanup globals and easy
Diffstat (limited to 'app/assets/javascripts/blob_edit')
-rw-r--r-- | app/assets/javascripts/blob_edit/blob_bundle.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/assets/javascripts/blob_edit/blob_bundle.js b/app/assets/javascripts/blob_edit/blob_bundle.js index 1c64ccf536f..b5500ac116f 100644 --- a/app/assets/javascripts/blob_edit/blob_bundle.js +++ b/app/assets/javascripts/blob_edit/blob_bundle.js @@ -8,6 +8,7 @@ import BlobFileDropzone from '../blob/blob_file_dropzone'; $(() => { const editBlobForm = $('.js-edit-blob-form'); const uploadBlobForm = $('.js-upload-blob-form'); + const deleteBlobForm = $('.js-delete-blob-form'); if (editBlobForm.length) { const urlRoot = editBlobForm.data('relative-url-root'); @@ -30,4 +31,8 @@ $(() => { '.btn-upload-file', ); } + + if (deleteBlobForm.length) { + new NewCommitForm(deleteBlobForm); + } }); |