diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-16 11:30:40 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-16 11:30:40 -0400 |
commit | c97a435d73eca1d2365a66469252d685e942501b (patch) | |
tree | 7c9ca720279754bfd9fbe20d6e7dea985eb1dbc6 /public/js/app.js | |
parent | 48b2425c1d49560094b2935e6451d55cd5aa1f1a (diff) | |
parent | c9bf526be74a29a9f2e620cbcd06989a40597531 (diff) |
Merge branch 'master' of github.com:gogits/gogs
Diffstat (limited to 'public/js/app.js')
-rw-r--r-- | public/js/app.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/public/js/app.js b/public/js/app.js index 4a5d2053..94e38cc1 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -111,4 +111,13 @@ function initUserSetting(){ }); } }); -}
\ No newline at end of file +} + +;(function($){ + // on Dom Ready + $(function(){ + var $pre = $('.markdown').find('pre > code').parent(); + $pre.addClass("prettyprint"); + prettyPrint(); + }); +})(jQuery); |