09-03-2010, 05:07 AM
I noticed this too, its happening because the javascript validation is failing in (out/out.AddDocument.php). Now there should be a folder view delete function, each document has a corresponding checkbox, this would resolve the zombie issue.
The validation of the userfile field is failing which is causing the rest to fail. See marked line below, I commented out the userfile check and added in a check for if name is disabled(gets disabled when multiple uploads are done)
I'm not sure how to fix the Userfile JS validation, maybe it should be done on the server side instead.
The validation of the userfile field is failing which is causing the rest to fail. See marked line below, I commented out the userfile check and added in a check for if name is disabled(gets disabled when multiple uploads are done)
Code:
function checkForm()
{
var msg = "";
Comment Out--> //if (document.form1.userfile.value == "") msg += "<?php printMLText("js_no_file");?>\n";
Added--> if(!document.form1.name.disabled){
if (document.form1.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
Added--> }
<?php
if (isset($settings->_strictFormCheck) && $settings->_strictFormCheck) {
?>
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
if (document.form1.keywords.value == "") msg += "<?php printMLText("js_no_keywords");?>\n";
<?php
}
?>
if (msg != ""){
alert(msg);
return false;
}
else return true;
}
I'm not sure how to fix the Userfile JS validation, maybe it should be done on the server side instead.