From f42b6f0d37b0df3c6a4b78a248475bc2a3262cef Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Wed, 21 Jun 2017 15:28:43 +0200 Subject: [PATCH] fix not supported 'startsWith' function in IE11 (fixes #3307) --- openslides/core/static/js/core/docx.js | 2 +- openslides/motions/static/js/motions/docx.js | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/openslides/core/static/js/core/docx.js b/openslides/core/static/js/core/docx.js index 7ec74b3bd..b8ea408d3 100644 --- a/openslides/core/static/js/core/docx.js +++ b/openslides/core/static/js/core/docx.js @@ -33,7 +33,7 @@ angular.module('OpenSlidesApp.core.docx', []) tagStack.pop(); // Special: end paragraphs - if (tag.startsWith('/p')) { + if (tag.indexOf('/p') === 0) { docx += ''; inParagraph = false; } diff --git a/openslides/motions/static/js/motions/docx.js b/openslides/motions/static/js/motions/docx.js index 46b2803b9..c37367287 100644 --- a/openslides/motions/static/js/motions/docx.js +++ b/openslides/motions/static/js/motions/docx.js @@ -17,11 +17,6 @@ angular.module('OpenSlidesApp.motions.docx', ['OpenSlidesApp.core.docx']) function ($http, $q, operator, Config, Category, gettextCatalog, FileSaver, lineNumberingService, Html2DocxConverter) { var PAGEBREAK = ''; - /*var TAGS_NO_PARAM = ['b', 'strong', 'em', 'i']; - - var images; - var relationships; - var contentTypes; */ var converter;