Improved error handling of upload feature.

This commit is contained in:
Martin Edenhofer 2014-06-11 00:05:20 +02:00
parent 943d015ae9
commit 7a0e95014c

View file

@ -664,6 +664,8 @@ class App.ControllerForm extends App.Controller
# add file uploader # add file uploader
u = => u = =>
# only add upload item if html element exists
if @el.find('#' + fileUploaderId )[0]
@el.find('#' + fileUploaderId ).fineUploader( @el.find('#' + fileUploaderId ).fineUploader(
request: request:
endpoint: App.Config.get('api_path') + '/ticket_attachment_new' endpoint: App.Config.get('api_path') + '/ticket_attachment_new'