{$form.ACCEPT} {$form.BTN_CANCEL} |
diff --git a/workflow/engine/xmlform/inputdocs/inputdocs_Edit.xml b/workflow/engine/xmlform/inputdocs/inputdocs_Edit.xml
index cee02cb5b..1b48505a6 100755
--- a/workflow/engine/xmlform/inputdocs/inputdocs_Edit.xml
+++ b/workflow/engine/xmlform/inputdocs/inputdocs_Edit.xml
@@ -26,6 +26,9 @@
+
+
+
diff --git a/workflow/engine/xmlform/inputdocs/inputdocs_Options.xml b/workflow/engine/xmlform/inputdocs/inputdocs_Options.xml
index 6f68276fc..5ae097fbe 100755
--- a/workflow/engine/xmlform/inputdocs/inputdocs_Options.xml
+++ b/workflow/engine/xmlform/inputdocs/inputdocs_Options.xml
@@ -17,9 +17,34 @@ var currentPagedTable = @#PAGED_TABLE_ID;
popupWindow('@G::LoadTranslation(ID_EDIT_INPUTDOCS)', '@G::encryptlink(@#inputdocsEdit)?INP_DOC_UID='+ uid , 500, 410);
}
function validate_form(){
- var sw = true;
- sw = sw && (getField('INP_DOC_TITLE').value!='');
- return sw;
+ if(getField('INP_DOC_TITLE').value == ''){
+ alert('@G::LoadTranslation(ID_INPUT_DOC_TITLE_REQUIRED)');
+ getField('INP_DOC_TITLE').focus();
+ return false;
+ }
+
+ oTypeFile = getField('INP_DOC_TYPE_FILE');
+ if (oTypeFile.value == '' ){
+ alert('@G::LoadTranslation(ID_INPUT_DOC_TYPE_FILE_REQUIRED)');
+ oTypeFile.focus();
+ return false;
+ }
+
+ allowedTypes = getField('INP_DOC_TYPE_FILE').value.split(", ");
+ expreg = /^\*\.?[a-z]{2,8}$/;
+
+ for(i=0; i