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
u = =>
# only add upload item if html element exists
if @el.find('#' + fileUploaderId )[0]
@el.find('#' + fileUploaderId ).fineUploader(
request:
endpoint: App.Config.get('api_path') + '/ticket_attachment_new'