From 120ab5a0a99457d063fe5ac29a96ae685e5a621a Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 11 Dec 2020 09:13:04 +0100 Subject: [PATCH] show path and name of selected doc/folder in doc/folder chooser as title --- views/bootstrap/class.Bootstrap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 9f46a82c5..7bd063883 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -1290,7 +1290,7 @@ $(document).ready(function() { $content = ''; $content .= "getID() : "") ."\">"; $content .= "
\n"; - $content .= "getName()) : "") ."\" placeholder=\"".getMLText('type_to_search')."\" autocomplete=\"off\" />"; + $content .= "getName()) : "") ."\" placeholder=\"".getMLText('type_to_search')."\" autocomplete=\"off\"".($default ? ' title="'.htmlspecialchars($default->getFolder()->getFolderPathPlain().' / '.$default->getName()).'"' : '')." />"; $content .= ""; if(!$skiptree) $content .= $this->getModalBoxLink( @@ -1354,7 +1354,7 @@ function folderSelected(id, name) { $content = ''; $content .= "getID() : "") ."\">"; $content .= "
\n"; - $content .= "getName()) : "") ."\" placeholder=\"".getMLText('type_to_search')."\" autocomplete=\"off\" target=\"".$formid."\"/>"; + $content .= "getName()) : "") ."\" placeholder=\"".getMLText('type_to_search')."\" autocomplete=\"off\" target=\"".$formid."\"".($default ? ' title="'.htmlspecialchars($default->getFolderPathPlain()).'"' : '')."/>"; $content .= ""; if(!$skiptree) { $content .= $this->getModalBoxLink(