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:
parent
d5479eb062
commit
444e92f400
1 changed files with 1 additions and 0 deletions
|
@ -105,6 +105,7 @@ class GitLabCrop
|
|||
@setBlob()
|
||||
@setPreview()
|
||||
@modalCrop.modal('hide')
|
||||
@fileInput.val('')
|
||||
|
||||
onActionBtnClick: (btn) ->
|
||||
data = $(btn).data()
|
||||
|
|
Loading…
Reference in a new issue