Permalink
Browse files

Merge pull request #157 from nealpoole/master

Fixed broken preview functionality
  • Loading branch information...
2 parents 401e41b + c1fc3a9 commit 2bb62309becf75228392782a44b7020f1d197ef2 @technoweenie technoweenie committed Jun 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/gollum/frontend/public/javascript/editor/gollum.editor.js
View
2 lib/gollum/frontend/public/javascript/editor/gollum.editor.js
@@ -62,7 +62,7 @@
// get form fields
var oldAction = $('#gollum-editor form').attr('action');
var $form = $($('#gollum-editor form').get(0));
- $form.attr('action', this.href);
+ $form.attr('action', '/preview');
$form.attr('target', '_blank');
$form.submit();

0 comments on commit 2bb6230

Please sign in to comment.