From c48030d54e284fc9c4c3103520a70c22da3b7538 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 29 May 2015 20:47:03 +0200 Subject: [PATCH] add more parameter to printDocumentChooser() --- views/bootstrap/class.Bootstrap.php | 41 ++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 12 deletions(-) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 941124760..8f9eb9857 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -903,14 +903,21 @@ $(document).ready(function () { print ""; } /* }}} */ - function printDocumentChooser($formName) { /* {{{ */ - print ""; + function printDocumentChooser($form, $accessMode=M_READ, $exclude = -1, $default = false, $formname = '', $folder='', $partialtree=0) { /* {{{ */ + $formid = "docid".$form; + if(!$formname) + $formname = "docid"; + if(!$folder) + $folderid = $this->params['rootfolderid']; + else + $folderid = $folder->getID(); + print "getID() : "") ."\">"; print "
\n"; - print ""; - print "params['rootfolderid']."\" role=\"button\" class=\"btn\" data-toggle=\"modal\">".getMLText("document")."…\n"; + print "getName()) : "") ."\" placeholder=\"".getMLText('type_to_search')."\" autocomplete=\"off\" />"; + print "".getMLText("document")."…\n"; print "
\n"; ?> -