Mercurial > agora
comparison static/js/agora.js @ 193:fe51ec4eccc1
Added necessary css and Javascript code for the comment system
author | ahsanalishahid <ahsan.ali.shahid@gmail.com> |
---|---|
date | Tue, 02 Jul 2013 02:01:02 +0500 |
parents | cdfc1d269a75 |
children | 134f726fd62c |
comparison
equal
deleted
inserted
replaced
192:7ec7f6a30592 | 193:fe51ec4eccc1 |
---|---|
35 selection.removeAllRanges(); | 35 selection.removeAllRanges(); |
36 selection.addRange(range); | 36 selection.addRange(range); |
37 } | 37 } |
38 }; | 38 }; |
39 | 39 |
40 $.fn.ShowCommentForm = function(id){ | |
41 $(this).hide(); | |
42 $('#' + id).show(); | |
43 | |
44 | |
45 | |
46 }; | |
47 | |
40 $(document).ready(function () { | 48 $(document).ready(function () { |
41 handleLoginLink(); | 49 handleLoginLink(); |
42 | 50 |
43 // Add in the line numbers (no JS fallback unfortunately) | 51 // Add in the line numbers (no JS fallback unfortunately) |
44 if ($('.snippet').length) { | 52 if ($('.snippet').length) { |
73 | 81 |
74 $('.snippet').removeClass(currentStyle).addClass(newStyle); | 82 $('.snippet').removeClass(currentStyle).addClass(newStyle); |
75 currentStyle = newStyle; | 83 currentStyle = newStyle; |
76 }); | 84 }); |
77 }); | 85 }); |
78 })(jQuery); | 86 |
87 | |
88 | |
89 } | |
90 )(jQuery); | |
91 | |
92 |