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