Commit c9fd717ee17c4da8b762727fc0e37f72a6f6962d
1 parent
465baa70
changed confirm message to print the document filename
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2257 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/checkInDocumentUI.inc
| ... | ... | @@ -59,7 +59,7 @@ function renderCheckInPage($oDocument) { |
| 59 | 59 | $sToRender .= "<table>\n"; |
| 60 | 60 | $sToRender .= "<tr>\n"; |
| 61 | 61 | // FIXME: if the document name contains an apostrophe this js doesn't work |
| 62 | - $sToRender .= "<td><input type=\"image\" border=\"0\" src =\"$default->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"; | |
| 62 | + $sToRender .= "<td><input type=\"image\" border=\"0\" src =\"$default->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"; | |
| 63 | 63 | $sToRender .= "<a href=\"$default->rootUrl/control.php?action=viewDocument&fDocumentID=" . $oDocument->getID() . "\"><img src=\"$default->graphicsUrl/widgets/cancel.gif\" border=\"0\"></a></td>\n"; |
| 64 | 64 | $sToRender .= "</tr>\n"; |
| 65 | 65 | $sToRender .= "</table>\n"; | ... | ... |