Commit 8252cfd0d8594cdf50f3f8f2fda44c55b1f8992f
1 parent
723694d8
added ie ssl download hack for checkout download button
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1560 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
6 additions
and
1 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
| ... | ... | @@ -339,7 +339,12 @@ function getCheckOutEditPage($oDocument, $bCheckedOut = false) { |
| 339 | 339 | $sToRender .= "\t\t<td>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.</td>\n"; |
| 340 | 340 | $sToRender .= "\t</tr>"; |
| 341 | 341 | $sToRender .= "\t<tr>\n"; |
| 342 | - $sToRender .= "<td><a href=\"$default->rootUrl/control.php?action=viewDocument&fDocumentID=" . $oDocument->getID() . "&fForDownload=1\"><img src=\"$default->graphicsUrl/widgets/download.gif\" border=\"0\" /></a>\n"; | |
| 342 | + // IE ssl download hack- don't use ssl to download | |
| 343 | + if ($default->phpSniff->property("browser") == "ie") { | |
| 344 | + $sToRender .= "<td><a href=\"http://" . $default->serverName . "$default->rootUrl/control.php?action=viewDocument&fDocumentID=" . $oDocument->getID() . "&fForDownload=1\"><img src=\"$default->graphicsUrl/widgets/download.gif\" border=\"0\" /></a>\n"; | |
| 345 | + } else { | |
| 346 | + $sToRender .= "<td><a href=\"$default->rootUrl/control.php?action=viewDocument&fDocumentID=" . $oDocument->getID() . "&fForDownload=1\"><img src=\"$default->graphicsUrl/widgets/download.gif\" border=\"0\" /></a>\n"; | |
| 347 | + } | |
| 343 | 348 | $sToRender .= "<a href=\"$default->rootUrl/control.php?action=viewDocument&fDocumentID=" . $oDocument->getID() . "\"><img src=\"$default->graphicsUrl/widgets/back.gif\" border=\"0\" /></a></td>\n"; |
| 344 | 349 | } else { |
| 345 | 350 | $sToRender .= "\t\t<td>" . renderCheckOutPage($oDocument) . "</td>\n"; | ... | ... |