diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkOutDocumentUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkOutDocumentUI.inc index abf786e..3fbd09e 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkOutDocumentUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkOutDocumentUI.inc @@ -52,7 +52,7 @@ function getCheckOutPage($oDocument, $bCheckedOut = false) { if ($bCheckedOut) { $sToRender .= ""; $sToRender .= "\n"; - $sToRender .= "\n"; $sToRender .= "
You have now checked out this document. No one else can make updates to the document while you have it checked out. Click the Download button to get the latest version of the file. Please check it back in, as soon as you finish working on it.
rootUrl/control.php?action=viewDocument&fDocumentID=" . $oDocument->getID() . "&fForDownload=1\">graphicsUrl/widgets/download.gif\" border=\"0\" />\n"; + $sToRender .= "
rootUrl/control.php?action=downloadDocument&fDocumentID=" . $oDocument->getID() . "\">graphicsUrl/widgets/download.gif\" border=\"0\" />\n"; $sToRender .= "rootUrl/control.php?action=viewDocument&fDocumentID=" . $oDocument->getID() . "\">graphicsUrl/widgets/back.gif\" border=\"0\" />
"; } else { diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/downloadBL.php b/presentation/lookAndFeel/knowledgeTree/documentmanagement/downloadBL.php index 9e39088..5004077 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/downloadBL.php +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/downloadBL.php @@ -49,6 +49,11 @@ if (checkSession()) { $oDocumentTransaction->create(); PhysicalDocumentManager::downloadPhysicalDocument($fDocumentID); } + + // optionally redirect to some other page +// if ($fForDownload) { +// $sOnLoadJs = "redirTimer(0, '" . generateControllerUrl("downloadDocument", "fDocumentID=$fDocumentID") ."');"; +// } } } else { require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");