Upload Standard NEU

This commit is contained in:
holger.trampe 2020-03-30 13:14:46 +02:00
parent db389c951c
commit 655ffb2cf1
2 changed files with 18 additions and 3 deletions

View File

@ -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: {

View File

@ -324,11 +324,14 @@ if ( isIE ) {
checkUserVerant();
checkUserEx();
checkUserVer();
updateLinkedFiles();
updateLinkedStandards();
});
},400);
}
//USERSTANDARD
var tempuserid = "";
var tempusername = "";
@ -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: {