[Lada-commits] [PATCH] Added html tags for more valid html in download file

Wald Commits scm-commit at wald.intevation.org
Thu Oct 27 16:33:08 CEST 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1477578785 -7200
# Node ID 4c443efd5587790b446382646575a1b567d14e41
# Parent  4e62bc6e7250238b6dc12707a5458212907bfa2f
Added html tags for more valid html in download file.

diff -r 4e62bc6e7250 -r 4c443efd5587 app/view/window/ImportResponse.js
--- 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();
             }


More information about the Lada-commits mailing list