fix note preview link, and hide preview and errors after posting a comment

This commit is contained in:
Nihad Abbasov 2012-08-14 01:24:27 -07:00
parent 6ebd360cf2
commit 0b7e67ad12
2 changed files with 4 additions and 2 deletions

View file

@ -74,7 +74,7 @@ $(document).ready(function(){
* Note markdown preview
*
*/
$('#preview-link').on('click', function(e) {
$(document).on('click', '#preview-link', function(e) {
$('#preview-note').text('Loading...');
var previewLinkText = ($(this).text() == 'Preview' ? 'Edit' : 'Preview');