diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 69014059e..2cb993576 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -1186,15 +1186,22 @@ $(document).ready(function() { return $content; } /* }}} */ - function getDocumentChooserHtml($formName) { /* {{{ */ + function getDocumentChooserHtml($form, $default=false, $formname='', $skiptree=false) { /* {{{ */ + if(!$formname) + $formname = "docid"; + $formid = md5($formname.$form); + $content = ''; - $content .= ""; + $content .= "getID() : "") ."\">"; $content .= "
\n"; - $content .= ""; - $content .= "params['rootfolderid']."\" role=\"button\" class=\"btn\" data-toggle=\"modal\">".getMLText("document")."…\n"; + $content .= "getName()) : "") ."\"/>"; + $content .= ""; + if(!$skiptree) + $content .= "params['rootfolderid']."\" role=\"button\" class=\"btn\" data-toggle=\"modal\">".getMLText("document")."…\n"; $content .= "
\n"; - $content .= ' -