From 4a85977874f0a0d870b06159961fbfe878f435cb Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 18 Mar 2016 16:25:07 +0100 Subject: [PATCH] separate js from html for document chooser --- views/bootstrap/class.AddDocument.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);?>