# HG changeset patch # User Raimund Renkert # Date 1378281427 -7200 # Node ID 87c1579f320d38d111e56bc51f6479617c122b6c # Parent 4fdc09ebf21db7ca11a2fe4838f1c34367a2a050# Parent d0a9a1c3144189b9b59f15c27fff87a6803de7f9 merged. diff -r d0a9a1c31441 -r 87c1579f320d app/controller/Proben.js --- a/app/controller/Proben.js Fri Aug 30 16:07:43 2013 +0200 +++ b/app/controller/Proben.js Wed Sep 04 09:57:07 2013 +0200 @@ -155,9 +155,23 @@ */ downloadFile: function(button) { var grid = button.up('grid'); - var selection = grid.getView().getSelectionModel().getSelection()[0]; - var url = "server/rest/export/laf/" + selection.get('probeId'); - window.open(url, "_blank"); + var selection = grid.getView().getSelectionModel().getSelection(); + var hiddenItems = []; + for (var i = 0; i < selection.length; i++) { + hiddenItems.push({xtype: 'hiddenfield', name: 'probeId', value: selection[i].get('probeId')}); + } + console.log('create download form.'); + var hiddenForm = Ext.create('Ext.form.Panel', { + title: 'hiddenForm', + standardSubmit: true, + url: 'server/rest/export/laf', + timeout: 120, + height: 0, + width: 0, + hidden: true, + items: hiddenItems + }); + hiddenForm.getForm().submit(); }, editItem: function(grid, record) { console.log('Editing Probe'); diff -r d0a9a1c31441 -r 87c1579f320d app/view/proben/List.js --- a/app/view/proben/List.js Fri Aug 30 16:07:43 2013 +0200 +++ b/app/view/proben/List.js Wed Sep 04 09:57:07 2013 +0200 @@ -5,6 +5,7 @@ extend: 'Ext.grid.Panel', alias: 'widget.probenlist', store: 'ProbenList', + multiSelect: true, viewConfig: { maxHeight: 350, emptyText: 'Keine Proben gefunden.',