Skip to content

Commit

Permalink
Remove unnecessary JS variable
Browse files Browse the repository at this point in the history
  • Loading branch information
cdhowie committed Jul 23, 2012
1 parent cb39eea commit bf24ec0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions public_html/appeal.php
Original file line number Diff line number Diff line change
Expand Up @@ -547,12 +547,7 @@ function hideContextWindow() {
?>
</SELECT>
</div>
<script type="text/javascript">

$contextValue = <?php echo json_encode($log->getLargeHTML()); ?>;

</script>
<h3><a href="javascript:void(0)" onClick="showContextWindow($contextValue)">Logs for this request</a> (<a href="comment.php?id=<?php echo $_GET['id']; ?>">new comment</a>)</h3>
<h3><a href="javascript:void(0)" onClick="showContextWindow(<?php echo htmlspecialchars(json_encode($log->getLargeHTML())) ?>)">Logs for this request</a> (<a href="comment.php?id=<?php echo $_GET['id']; ?>">new comment</a>)</h3>
<div class="comments">
<?php echo str_replace("\r\n", " ", $log->getSmallHTML()); ?>
</div>
Expand Down

0 comments on commit bf24ec0

Please sign in to comment.