FSN#38934 2016.3 Facilitor loopt vast als 2x dezelfde bijlage geupload wordt
svn path=/Website/branches/v2016.3/; revision=32292
This commit is contained in:
@@ -194,23 +194,29 @@ if (fso.FolderExists(params.AttachPath))
|
||||
var fName = uName[uName.length-1];
|
||||
var fTable = document.getElementById("filetable");
|
||||
var fRow = fTable.getElementsByTagName("A");
|
||||
var continueOrReplace = true;
|
||||
var equal = false;
|
||||
for(var i=0; i<fRow.length; i++)
|
||||
{
|
||||
var tName = fRow[i].innerHTML.replace(/^\s+|\s+$/g,""); // spaties ervoor en erachter verwijderen.
|
||||
var equal = tName.toLowerCase() == fName.toLowerCase();
|
||||
FcltMgr.confirm(L('lcl_shared_file_replace').format(tName), { autoconfirm: (!equal || !continueOrReplace), fncancel: function() { continueOrReplace = false } }, function() {
|
||||
});
|
||||
equal = tName.toLowerCase() == fName.toLowerCase();
|
||||
if (equal)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (continueOrReplace) {
|
||||
|
||||
//
|
||||
$("#uploading").show();
|
||||
FcltMgr.resized();
|
||||
|
||||
document.forms.u2.action = "<%=protectQS.create("UploadForm_save.asp?action=insert"+transitParam)%>"
|
||||
document.forms.u2.submit();
|
||||
}
|
||||
FcltMgr.confirm(L('lcl_shared_file_replace').format(tName),
|
||||
{ autoconfirm: !equal,
|
||||
fncancel: function() { /* geen actie bij confirm=cancel */ }
|
||||
},
|
||||
function()
|
||||
{ // confirm=OK
|
||||
$("#uploading").show();
|
||||
FcltMgr.resized();
|
||||
document.forms.u2.action = "<%=protectQS.create("UploadForm_save.asp?action=insert"+transitParam)%>"
|
||||
document.forms.u2.submit();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function displayFilename(fileInput)
|
||||
|
||||
Reference in New Issue
Block a user