Closes #167 - reattach of same attachment was not possible because not change was triggered.
This commit is contained in:
parent
6ab787e7dc
commit
cd96a95b68
2 changed files with 4 additions and 0 deletions
|
@ -79,6 +79,7 @@ class App.UiElement.richtext
|
|||
onAborted: =>
|
||||
@attachmentPlaceholder.removeClass('hide')
|
||||
@attachmentUpload.addClass('hide')
|
||||
item.find('input').val('')
|
||||
|
||||
# Called after received response from the server
|
||||
onCompleted: (response) =>
|
||||
|
@ -93,6 +94,7 @@ class App.UiElement.richtext
|
|||
@progressText.text('')
|
||||
|
||||
renderAttachment(response.data)
|
||||
item.find('input').val('')
|
||||
|
||||
App.Log.debug 'UiElement.richtext', 'upload complete', response.data
|
||||
|
||||
|
|
|
@ -224,6 +224,7 @@ class App.TicketZoomArticleNew extends App.Controller
|
|||
onAborted: =>
|
||||
@attachmentPlaceholder.removeClass('hide')
|
||||
@attachmentUpload.addClass('hide')
|
||||
@$('.article-attachment input').val('')
|
||||
|
||||
# Called after received response from the server
|
||||
onCompleted: (response) =>
|
||||
|
@ -239,6 +240,7 @@ class App.TicketZoomArticleNew extends App.Controller
|
|||
@progressText.text('')
|
||||
|
||||
@renderAttachment(response.data)
|
||||
@$('.article-attachment input').val('')
|
||||
|
||||
# Called during upload progress, first parameter
|
||||
# is decimal value from 0 to 100.
|
||||
|
|
Loading…
Reference in a new issue