From 8a754b5f6305a0228191ca7b2b54316eabe50e1f Mon Sep 17 00:00:00 2001 From: steinm Date: Wed, 20 Jul 2011 10:27:38 +0000 Subject: [PATCH] - do not ask for a filename if _strictFormCheck is set to false - do not erase file selection fields if a new document is added --- out/out.AddDocument.php | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/out/out.AddDocument.php b/out/out.AddDocument.php index 846c3c1cb..04e453720 100644 --- a/out/out.AddDocument.php +++ b/out/out.AddDocument.php @@ -51,12 +51,12 @@ function checkForm() msg = ""; //if (document.form1.userfile[].value == "") msg += "\n"; - if(!document.form1.name.disabled){ - if (document.form1.name.value == "") msg += "\n"; - } _strictFormCheck) && $settings->_strictFormCheck) { - ?> +?> + if(!document.form1.name.disabled){ + if (document.form1.name.value == "") msg += "\n"; + } if (document.form1.comment.value == "") msg += "\n"; if (document.form1.keywords.value == "") msg += "\n"; '; + var li = document.createElement('li'); + li.innerHTML = ''; + document.getElementById('files').appendChild(li); +// document.getElementById("files").innerHTML += '
'; document.form1.name.disabled=true; } @@ -96,8 +99,8 @@ $docAccess = $folder->getApproversList();
- - + + @@ -111,9 +114,9 @@ $docAccess = $folder->getApproversList();
:: -
- -
+
    +
  1. +