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.
This commit is contained in:
Alfredo Sumaran 2016-03-22 13:43:32 -05:00
parent d5479eb062
commit 444e92f400

View file

@ -105,6 +105,7 @@ class GitLabCrop
@setBlob()
@setPreview()
@modalCrop.modal('hide')
@fileInput.val('')
onActionBtnClick: (btn) ->
data = $(btn).data()