comparison app/assets/javascripts/init.tabs.js @ 133:342373709d16

No need to test window.prettyPrint.
author Edho Arief <edho@myconan.net>
date Mon, 12 Nov 2012 17:28:12 +0700
parents e05e47f7d224
children 3c777dbd6b11
comparison
equal deleted inserted replaced
132:e05e47f7d224 133:342373709d16
8 markdown.html(marked(raw)); 8 markdown.html(marked(raw));
9 $('#highlight pre').text(raw); 9 $('#highlight pre').text(raw);
10 10
11 markdown.find('pre').addClass('prettyprint'); 11 markdown.find('pre').addClass('prettyprint');
12 markdown.find('a').prop('rel', 'nofollow'); 12 markdown.find('a').prop('rel', 'nofollow');
13 window.prettyPrint && prettyPrint(); 13 prettyPrint();
14 14
15 update_state = function() { 15 update_state = function() {
16 var paste = $('#paste'), 16 var paste = $('#paste'),
17 mode = paste.data('mode'), 17 mode = paste.data('mode'),
18 width = paste.data('width'), 18 width = paste.data('width'),