Upload Standard NEU
This commit is contained in:
parent
db389c951c
commit
655ffb2cf1
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue