allura
Revision | f0bebff4f15cb9bea1bf5e3864410fd2f3bd7041 (tree) |
---|---|
Time | 2011-02-10 08:05:53 |
Author | Rick Copeland <rcopeland@geek...> |
Commiter | Rick Copeland |
[#1478] Fix problem with MD preview (CSRF failure)
Signed-off-by: Rick Copeland <rcopeland@geek.net>
@@ -11,10 +11,12 @@ $(window).load(function() { | ||
11 | 11 | var $help_area = $('div.markdown_help', $container); |
12 | 12 | $preview.click(function(evt){ |
13 | 13 | evt.preventDefault(); |
14 | + var cval = $.cookie('_session_id'); | |
14 | 15 | $.post('/nf/markdown_to_html', { |
15 | 16 | markdown:$textarea.val(), |
16 | 17 | project:$('input.markdown_project', $container).val(), |
17 | - app:$('input.markdown_app', $container).val() | |
18 | + app:$('input.markdown_app', $container).val(), | |
19 | + _session_id:cval | |
18 | 20 | }, |
19 | 21 | function(resp){ |
20 | 22 | $preview_area.html(resp); |