From d58100c6780ca49af6825a8efcfc559fff1bc294 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 28 Aug 2020 11:50:29 +0200 Subject: [PATCH] edit and show new attribute types, major overhaul of folder tree to make several trees on a page possible --- views/bootstrap/class.Bootstrap.php | 239 +++++++++++++++++++++++----- 1 file changed, 201 insertions(+), 38 deletions(-) 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 .= ' -