Improved error handling of upload feature.
This commit is contained in:
parent
943d015ae9
commit
7a0e95014c
1 changed files with 19 additions and 17 deletions
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue