diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-08-23 17:56:55 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-08-23 17:56:55 +0400 |
commit | 0e5dbd1caf10baf7e812ad2eccbadce2f05a3f13 (patch) | |
tree | ba1cf15da218fedd4bb7cc163b4a8cb5b25090ef /app/assets/javascripts/application.js | |
parent | 07fe78b323a94d6c1591b7be8c1c657e56cd9df0 (diff) | |
parent | 0b7e67ad12dff04da6d7825a6125099ef0d21174 (diff) |
Merge pull request #1231 from NARKOZ/preview_notes
Preview window is not closed after post
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 d9cbd5d65b3..24d99a62ca5 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -72,7 +72,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'); |