diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-08-14 12:24:27 +0400 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-08-14 12:24:27 +0400 |
commit | 0b7e67ad12dff04da6d7825a6125099ef0d21174 (patch) | |
tree | 84ff408019c1d513bf43a49e469821b4b062ebe2 /app/assets/javascripts/application.js | |
parent | 6ebd360cf2627f874532db6b6fa7f14d4b23984b (diff) |
fix note preview link, and hide preview and errors after posting a comment
Diffstat (limited to 'app/assets/javascripts/application.js')
-rw-r--r-- | app/assets/javascripts/application.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 25732ae5289..28e9d362303 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -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'); |