Commit 444e92f4 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Clear original input after crop

This fixes the case when the user selects the same image consecutively. It failed because no 'change' event was fired.
parent d5479eb0
......@@ -105,6 +105,7 @@ class GitLabCrop
@setBlob()
@setPreview()
@modalCrop.modal('hide')
@fileInput.val('')
onActionBtnClick: (btn) ->
data = $(btn).data()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment