changeset 1223:4c443efd5587

Added html tags for more valid html in download file.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 27 Oct 2016 16:33:05 +0200
parents 4e62bc6e7250
children 5b5d9d7a771a
files app/view/window/ImportResponse.js
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/window/ImportResponse.js	Thu Oct 27 16:26:07 2016 +0200
+++ b/app/view/window/ImportResponse.js	Thu Oct 27 16:33:05 2016 +0200
@@ -143,6 +143,8 @@
                     'aufgrund eines Fehlers im Server nicht beendet werden.');
         }
         else {
+            out.push('<!DOCTYPE html>' +
+                '<head><meta charset="utf-8"></head><body>');
             if (numErrors > 0) {
                 out.push('Folgende Proben konnten nicht erfolgreich ' +
                         'importiert werden:');
@@ -208,6 +210,7 @@
                 out.push('</ol>');
             }
             out.push('<br/>');
+            out.push('</body></html>')
             if (numWarnings > 0 || numErrors > 0) {
                 this.down('button[name=download]').enable();
             }

http://lada.wald.intevation.org