From 79f47fa3f777ac9664bed3ac6e9490740a19b8b0 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 20 Jun 2003 09:35:34 +0000 Subject: [PATCH] refactored display integration with the document details page --- presentation/lookAndFeel/knowledgeTree/documentmanagement/checkInDocumentUI.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkInDocumentUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkInDocumentUI.inc index 9c54882..582fd31 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkInDocumentUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkInDocumentUI.inc @@ -58,6 +58,7 @@ function renderCheckInPage($oDocument) { $sToRender .= "\n"; $sToRender .= "\n"; + // FIXME: if the document name contains an apostrophe this js doesn't work $sToRender .= "\n"; $sToRender .= "\n"; @@ -95,6 +96,10 @@ function renderCheckInPage($oDocument) { * @param object the document to view and check out */ function getCheckInPage($oDocument) { - return getPage($oDocument, false, renderCheckInPage($oDocument)); + $sToRender .= renderHeading("Document Detail"); + $sToRender .= renderDocumentPath($oDocument, false) . "\n\n"; + $sToRender .= renderCheckInPage($oDocument); + $sToRender .= renderDocumentData($oDocument, $bEdit); + return $sToRender; } ?> \ No newline at end of file -- libgit2 0.21.4
graphicsUrl/widgets/checkin.gif\" value=\"Submit\" onClick=\"if (validRequired(document.MainForm.fFile, 'Check-In File') && validRequired(document.MainForm.fCheckInComment, 'Check-In Comment')) { return confirm('Are you sure you want to overwrite " . $oDocument->getName() . " with ' + document.MainForm.fFile.value + '?'); } else return false;\"/>\n"; $sToRender .= "rootUrl/control.php?action=viewDocument&fDocumentID=" . $oDocument->getID() . "\">graphicsUrl/widgets/cancel.gif\" border=\"0\">