Skip to content

Commit

Permalink
fix the pre code bug in ie8
Browse files Browse the repository at this point in the history
  • Loading branch information
SunLn committed Feb 27, 2014
1 parent 1d88629 commit 56951b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ <h4 class="modal-title" id="myModalLabel">图片效果查看</h4>
<script type="text/javascript" src="js/plupload/i18n/zh_CN.js"></script>
<script type="text/javascript" src="/js/ui.js"></script>
<script type="text/javascript" src="/js/qiniu.js"></script>
<script type="text/javascript" src="/js/main.js"></script>
<script type="text/javascript" src="/js/highlight/highlight.js"></script>
<script type="text/javascript" src="/js/main.js"></script>
</body>
</html>
8 changes: 5 additions & 3 deletions example/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,15 @@ $(function() {
e.stopPropagation();
});



$('#show_code').on('click', function() {
$('#myModal-code').modal();
$('pre code').each(function(i, e) {
hljs.highlightBlock(e);
});
});

$('pre code').each(function(i, e) {
hljs.highlightBlock(e);
});

$('body').on('click', 'table button.btn', function() {
$(this).parents('tr').next().toggle();
Expand Down

0 comments on commit 56951b2

Please sign in to comment.