comparison app/view/window/FileUpload.js @ 1221:4b456449029c

Increased request timeout and set loading mask.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 26 Oct 2016 16:50:07 +0200
parents f73ca04d73a7
children 4e62bc6e7250
comparison
equal deleted inserted replaced
1220:1136d108d855 1221:4b456449029c
80 var uploader = Ext.create('Ext.ux.upload.uploader.ExtJsUploader', { 80 var uploader = Ext.create('Ext.ux.upload.uploader.ExtJsUploader', {
81 extraHeaders: { 81 extraHeaders: {
82 'X-OPENID-PARAMS': Lada.openIDParams 82 'X-OPENID-PARAMS': Lada.openIDParams
83 }, 83 },
84 method: 'POST', 84 method: 'POST',
85 timeout: 600 * 1000,
85 url: 'lada-server/data/import/laf' 86 url: 'lada-server/data/import/laf'
86 }); 87 });
87 this.mon(uploader, 'uploadsuccess', win.uploadSuccess, win); 88 this.mon(uploader, 'uploadsuccess', win.uploadSuccess, win);
88 this.mon(uploader, 'uploadfailure', win.uploadFailure, win); 89 this.mon(uploader, 'uploadfailure', win.uploadFailure, win);
89 if (button.up('window').file !== null) { 90 if (button.up('window').file !== null) {
90 uploader.uploadItem(button.up('window').file); 91 uploader.uploadItem(button.up('window').file);
92 win.setLoading(Lada.getApplication().bundle.getMsg('processingData'));
91 } 93 }
92 }, 94 },
93 95
94 /** 96 /**
95 * @private 97 * @private

http://lada.wald.intevation.org