comparison app/view/window/FileUpload.js @ 809:3bc19188fc3a

Added some todos, Enhanced Proge-Generation Success Msg.
author Dustin Demuth <dustin@intevation.de>
date Fri, 22 May 2015 16:14:14 +0200
parents 66812ad4b720
children def27cdd0dfa
comparison
equal deleted inserted replaced
808:c135201940ee 809:3bc19188fc3a
57 this.fileInput.setValue(item.getName()); 57 this.fileInput.setValue(item.getName());
58 this.file = item; 58 this.file = item;
59 }, 59 },
60 60
61 uploadFile: function(button) { 61 uploadFile: function(button) {
62 // TODO Error handling ?
62 var win = button.up('window'); 63 var win = button.up('window');
63 var uploader = Ext.create('Ext.ux.upload.uploader.ExtJsUploader', { 64 var uploader = Ext.create('Ext.ux.upload.uploader.ExtJsUploader', {
64 extraHeaders: { 65 extraHeaders: {
65 'X-OPENID-PARAMS': Lada.openIDParams 66 'X-OPENID-PARAMS': Lada.openIDParams
66 }, 67 },
84 }); 85 });
85 win.show(); 86 win.show();
86 }, 87 },
87 88
88 uploadFailure: function(file, response) { 89 uploadFailure: function(file, response) {
90 // TODO handle Errors correctly, especially AuthenticationTimeouts
89 this.close(); 91 this.close();
90 var win = Ext.create('Lada.view.window.ImportResponse', { 92 var win = Ext.create('Lada.view.window.ImportResponse', {
91 data: response.response.responseText, 93 data: response.response.responseText,
92 message: response.message, 94 message: response.message,
93 fileName: file.config.fileApiObject.name, 95 fileName: file.config.fileApiObject.name,

http://lada.wald.intevation.org