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: =>
|
onAborted: =>
|
||||||
@attachmentPlaceholder.removeClass('hide')
|
@attachmentPlaceholder.removeClass('hide')
|
||||||
@attachmentUpload.addClass('hide')
|
@attachmentUpload.addClass('hide')
|
||||||
|
item.find('input').val('')
|
||||||
|
|
||||||
# Called after received response from the server
|
# Called after received response from the server
|
||||||
onCompleted: (response) =>
|
onCompleted: (response) =>
|
||||||
|
@ -93,6 +94,7 @@ class App.UiElement.richtext
|
||||||
@progressText.text('')
|
@progressText.text('')
|
||||||
|
|
||||||
renderAttachment(response.data)
|
renderAttachment(response.data)
|
||||||
|
item.find('input').val('')
|
||||||
|
|
||||||
App.Log.debug 'UiElement.richtext', 'upload complete', response.data
|
App.Log.debug 'UiElement.richtext', 'upload complete', response.data
|
||||||
|
|
||||||
|
|
|
@ -224,6 +224,7 @@ class App.TicketZoomArticleNew extends App.Controller
|
||||||
onAborted: =>
|
onAborted: =>
|
||||||
@attachmentPlaceholder.removeClass('hide')
|
@attachmentPlaceholder.removeClass('hide')
|
||||||
@attachmentUpload.addClass('hide')
|
@attachmentUpload.addClass('hide')
|
||||||
|
@$('.article-attachment input').val('')
|
||||||
|
|
||||||
# Called after received response from the server
|
# Called after received response from the server
|
||||||
onCompleted: (response) =>
|
onCompleted: (response) =>
|
||||||
|
@ -239,6 +240,7 @@ class App.TicketZoomArticleNew extends App.Controller
|
||||||
@progressText.text('')
|
@progressText.text('')
|
||||||
|
|
||||||
@renderAttachment(response.data)
|
@renderAttachment(response.data)
|
||||||
|
@$('.article-attachment input').val('')
|
||||||
|
|
||||||
# Called during upload progress, first parameter
|
# Called during upload progress, first parameter
|
||||||
# is decimal value from 0 to 100.
|
# is decimal value from 0 to 100.
|
||||||
|
|
Loading…
Reference in a new issue