diff --git a/views/bootstrap/class.AddDocument.php b/views/bootstrap/class.AddDocument.php index 71bebcf06..c07d04986 100644 --- a/views/bootstrap/class.AddDocument.php +++ b/views/bootstrap/class.AddDocument.php @@ -76,6 +76,9 @@ $(document).ready(function() { printKeywordChooserJs("form1"); $this->printDropFolderChooserJs("form1"); + if($libraryfolder) { + $this->printDocumentChooserJs("form1"); + } } /* }}} */ function show() { /* {{{ */ @@ -225,7 +228,7 @@ $(document).ready(function() { : - printDocumentChooser("form1", M_READ, -1, null, 'librarydoc', $libraryfolder, 1);?> + printDocumentChooserHtml("form1", M_READ, -1, null, 'librarydoc', $libraryfolder, 1);?>