diff --git a/views/bootstrap/class.AddDocument.php b/views/bootstrap/class.AddDocument.php index c26b1a331..2b66b8af5 100644 --- a/views/bootstrap/class.AddDocument.php +++ b/views/bootstrap/class.AddDocument.php @@ -76,7 +76,7 @@ $(document).ready(function() { } return false; }, ""); - $("#form1").validate({ + $("#adddocform").validate({ debug: false, ignore: ":hidden:not(.do_validate)", invalidHandler: function(e, validator) { @@ -107,16 +107,16 @@ $(document).ready(function() { if($enablelargefileupload) { ?> 'userfile-fine-uploader-uuids': { - fineuploader: [ userfileuploader, $('#dropfolderfileform1') ] + fineuploader: [ userfileuploader, $('#dropfolderfileadddocform') ] } 'userfile[]': { - alternatives: [$('#dropfolderfileform1'), $('#choosedocsearchform1')] + alternatives: [$('#dropfolderfileadddocform'), $('#choosedocsearchadddocform')] }, - dropfolderfileform1: { - alternatives: [$("#userfile"), $('#choosedocsearchform1')] + dropfolderfileadddocform: { + alternatives: [$("#userfile"), $('#choosedocsearchadddocform')] } printKeywordChooserJs("form1"); + $this->printKeywordChooserJs("adddocform"); if($libraryfolder) - $this->printDocumentChooserJs("form1"); + $this->printDocumentChooserJs("adddocform"); if($dropfolderdir) { - $this->printDropFolderChooserJs("form1"); + $this->printDropFolderChooserJs("adddocform"); } $this->printFileChooserJs(); } /* }}} */ @@ -196,7 +196,7 @@ $(document).ready(function() { echo $txt; $this->contentContainerStart(); ?> -