From c9fd717ee17c4da8b762727fc0e37f72a6f6962d Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 1 Jul 2003 07:08:26 +0000 Subject: [PATCH] changed confirm message to print the document filename --- presentation/lookAndFeel/knowledgeTree/documentmanagement/checkInDocumentUI.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkInDocumentUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkInDocumentUI.inc index 582fd31..fcf949c 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkInDocumentUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkInDocumentUI.inc @@ -59,7 +59,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"; $sToRender .= "
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 .= "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->getFileName() . " with ' + document.MainForm.fFile.value + '?'); } else return false;\"/>\n"; $sToRender .= "rootUrl/control.php?action=viewDocument&fDocumentID=" . $oDocument->getID() . "\">graphicsUrl/widgets/cancel.gif\" border=\"0\">
\n"; -- libgit2 0.21.4