Commit 84f83b3399f488c1a5fb013097d2a64ce1c5b029
1 parent
eaa50460
enabled folder breadcrumb links when displaying status message
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2269 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
2 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
| ... | ... | @@ -18,11 +18,12 @@ function renderDocumentPath($oDocument, $bDisplayActions = false) { |
| 18 | 18 | global $default; |
| 19 | 19 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 20 | 20 | $sTDBGColour = $default->siteMap->getSectionColour($sSectionName, "td"); |
| 21 | + | |
| 22 | + $sDocumentPath = displayFolderPathLink(Folder::getFolderPathAsArray($oDocument->getFolderID()), Folder::getFolderPathNamesAsArray($oDocument->getFolderID()), "$default->rootUrl/control.php?action=browse") . " > "; | |
| 21 | 23 | if ($bDisplayActions) { |
| 22 | - $sDocumentPath = displayFolderPathLink(Folder::getFolderPathAsArray($oDocument->getFolderID()), Folder::getFolderPathNamesAsArray($oDocument->getFolderID()), "$default->rootUrl/control.php?action=browse") . " > "; | |
| 23 | 24 | $sDocumentPath .= "<a onClick=\"alert('This will view a copy of the current version of this document in the DMS. Any changes to this file will not be managed in the DMS.'); return true;\" href=\"" . generateControllerUrl("downloadDocument", "fDocumentID=" . $oDocument->getID() . "&fForInlineView=1") . "\">" . $oDocument->getName() . "</a>"; |
| 24 | 25 | } else { |
| 25 | - $sDocumentPath = $oDocument->getDisplayPath(); | |
| 26 | + $sDocumentPath .= $oDocument->getName(); | |
| 26 | 27 | } |
| 27 | 28 | return "<table border=\"0\" cellpadding=\"5\" width=\"610\"><tr bgcolor=\"$sTDBGColour\"><td width=\"87%\">$sDocumentPath</td>" . ($bDisplayActions ? "<td width=\"15%\" align=\"center\" valign=\"middle\"><strong>Actions</strong></td>" : "") . "</tr></table>\n"; |
| 28 | 29 | } | ... | ... |