Fix edit and update actions

This commit is contained in:
Senén Rodero Rodríguez
2017-08-14 15:39:58 +02:00
parent e9c5f77368
commit f226d2ac94
6 changed files with 17 additions and 9 deletions

View File

@@ -30,7 +30,7 @@ App.Documentable =
if result.status == 200
$(data.progressBar).find('.loading-bar').removeClass 'uploading'
$(data.progressBar).find('.loading-bar').addClass 'complete'
inputId = '#' + $(e.target).data('chached-attachment-input-field')
inputId = '#' + $(e.target).data('cached-attachment-input-field')
$(inputId).val result.attachment
else
$(data.progressBar).find('.loading-bar').addClass 'errors'