You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2015/07/27 15:12:02 UTC

[41/49] allura git commit: [#7897] ticket:823 Do not call /nf/markdown_to_html when leaving preview mode

[#7897] ticket:823 Do not call /nf/markdown_to_html when leaving preview mode


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/9ff93371
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/9ff93371
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/9ff93371

Branch: refs/heads/ib/7897
Commit: 9ff93371b52690d381400621a740e6e13a951175
Parents: 42b5014
Author: Igor Bondarenko <je...@gmail.com>
Authored: Fri Jul 17 16:51:03 2015 +0300
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Mon Jul 27 14:23:56 2015 +0300

----------------------------------------------------------------------
 Allura/allura/lib/widgets/resources/js/sf_markitup.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/9ff93371/Allura/allura/lib/widgets/resources/js/sf_markitup.js
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/widgets/resources/js/sf_markitup.js b/Allura/allura/lib/widgets/resources/js/sf_markitup.js
index 1dfdf4e..47cc6a7 100644
--- a/Allura/allura/lib/widgets/resources/js/sf_markitup.js
+++ b/Allura/allura/lib/widgets/resources/js/sf_markitup.js
@@ -107,12 +107,13 @@ $(window).load(function() {
                 }, 1);
                 toolbar.className += ' active';
                 toolbar_div.className += ' disabled-for-preview';
+
+                /* Code modified by Allura is here */
+                var text = cm.getValue();
+                get_rendered_text(preview, text);
               }
-              var text = cm.getValue();
-              /* Code modified by Allura is here */
               $container.toggleClass('preview-active');
               $container.siblings('span.arw').toggleClass('preview-active');
-              get_rendered_text(preview, text);
             }
 
             function get_rendered_text(preview, text) {