From 655ffb2cf1f2a9287e6196e67815318c174d3aa5 Mon Sep 17 00:00:00 2001 From: "holger.trampe" Date: Mon, 30 Mar 2020 13:14:46 +0200 Subject: [PATCH] Upload Standard NEU --- standards/templates/standards/standards_add.html | 16 ++++++++++++++-- .../templates/standards/standards_update.html | 5 ++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/standards/templates/standards/standards_add.html b/standards/templates/standards/standards_add.html index 30c23f2..4328d6e 100644 --- a/standards/templates/standards/standards_add.html +++ b/standards/templates/standards/standards_add.html @@ -334,7 +334,19 @@ if ( isIE ) { },400); } - +var ua = window.navigator.userAgent; +var isIE = /MSIE|Trident/.test(ua); +if ( isIE ) { + //IE specific code goes here + setInterval(function() + { + alluserfields = $(".searchuserfieldstask").each(function(key, value){ + specific_userfield_id = value['id'].split("_")[1]; + updateLinkedStandards(); + updateLinkedFiles(); + }); + },400); +} //USERSTOSTANDARDS //Verantwortlicher @@ -501,7 +513,7 @@ function uploadAction(filetodo){ var formData = new FormData(); formData.append("uploadedfile", filetodo); formData.append("uploadsource", "standards"); - if(allowedtypes.includes(filetodo.type) && filetodo.type.length > 0){ + if(allowedtypes.indexOf(filetodo.type) != -1 && filetodo.type.length > 0){ $.ajax({ url: "{% url 'cloud-adddir' parentid %}", headers: { diff --git a/standards/templates/standards/standards_update.html b/standards/templates/standards/standards_update.html index e70d8ad..b9fb008 100644 --- a/standards/templates/standards/standards_update.html +++ b/standards/templates/standards/standards_update.html @@ -324,10 +324,13 @@ if ( isIE ) { checkUserVerant(); checkUserEx(); checkUserVer(); + updateLinkedFiles(); + updateLinkedStandards(); }); },400); } + //USERSTANDARD var tempuserid = ""; @@ -579,7 +582,7 @@ function uploadAction(filetodo){ var formData = new FormData(); formData.append("uploadedfile", filetodo); formData.append("uploadsource", "standards"); - if(allowedtypes.includes(filetodo.type) && filetodo.type.length > 0){ + if(allowedtypes.indexOf(filetodo.type) != -1 && filetodo.type.length > 0){ $.ajax({ url: "{% url 'cloud-adddir' parentid %}", headers: {