allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetm...@apache.org
Subject [36/42] allura git commit: [#7897] ticket:823 Do not call /nf/markdown_to_html when leaving preview mode
Date Wed, 22 Jul 2015 12:31:32 GMT
[#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/a17f7c1f
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/a17f7c1f
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/a17f7c1f

Branch: refs/heads/ib/7897
Commit: a17f7c1f8be1b5e80863612b2b63646238c81a8b
Parents: c8756d7
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Fri Jul 17 16:51:03 2015 +0300
Committer: Igor Bondarenko <jetmind2@gmail.com>
Committed: Wed Jul 22 10:59:53 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/a17f7c1f/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) {


Mime
View raw message