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/22 14:31:32 UTC
[36/42] 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/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 <je...@gmail.com>
Authored: Fri Jul 17 16:51:03 2015 +0300
Committer: Igor Bondarenko <je...@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) {