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); },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 //USERSTOSTANDARDS
//Verantwortlicher //Verantwortlicher
@ -501,7 +513,7 @@ function uploadAction(filetodo){
var formData = new FormData(); var formData = new FormData();
formData.append("uploadedfile", filetodo); formData.append("uploadedfile", filetodo);
formData.append("uploadsource", "standards"); formData.append("uploadsource", "standards");
if(allowedtypes.includes(filetodo.type) && filetodo.type.length > 0){ if(allowedtypes.indexOf(filetodo.type) != -1 && filetodo.type.length > 0){
$.ajax({ $.ajax({
url: "{% url 'cloud-adddir' parentid %}", url: "{% url 'cloud-adddir' parentid %}",
headers: { headers: {

View File

@ -324,10 +324,13 @@ if ( isIE ) {
checkUserVerant(); checkUserVerant();
checkUserEx(); checkUserEx();
checkUserVer(); checkUserVer();
updateLinkedFiles();
updateLinkedStandards();
}); });
},400); },400);
} }
//USERSTANDARD //USERSTANDARD
var tempuserid = ""; var tempuserid = "";
@ -579,7 +582,7 @@ function uploadAction(filetodo){
var formData = new FormData(); var formData = new FormData();
formData.append("uploadedfile", filetodo); formData.append("uploadedfile", filetodo);
formData.append("uploadsource", "standards"); formData.append("uploadsource", "standards");
if(allowedtypes.includes(filetodo.type) && filetodo.type.length > 0){ if(allowedtypes.indexOf(filetodo.type) != -1 && filetodo.type.length > 0){
$.ajax({ $.ajax({
url: "{% url 'cloud-adddir' parentid %}", url: "{% url 'cloud-adddir' parentid %}",
headers: { headers: {