diff --git a/views/bootstrap/class.AddDocument.php b/views/bootstrap/class.AddDocument.php index e835f0b36..472a32303 100644 --- a/views/bootstrap/class.AddDocument.php +++ b/views/bootstrap/class.AddDocument.php @@ -75,7 +75,9 @@ $(document).ready(function() { }); printKeywordChooserJs("form1"); - $this->printDropFolderChooserJs("form1"); + if($dropfolderdir) { + $this->printDropFolderChooserJs("form1"); + } } /* }}} */ function show() { /* {{{ */