Fixup: typo and correct asset path
This commit is contained in:
@@ -151,7 +151,7 @@
|
||||
// get form fields
|
||||
var oldAction = $('#gollum-editor form').attr('action');
|
||||
var $form = $($('#gollum-editor form').get(0));
|
||||
$form.attr('action', this.href || '<%= preview_path >');
|
||||
$form.attr('action', this.href || '<%= preview_path %>');
|
||||
$form.attr('target', '_blank');
|
||||
var paths = window.location.pathname.split('/');
|
||||
$form.attr('page', paths[ paths.length - 1 ] || '')
|
||||
|
||||
@@ -4,8 +4,8 @@ module Precious
|
||||
module Views
|
||||
module RouteHelpers
|
||||
ROUTES = {
|
||||
assets: 'assets',
|
||||
'gollum' => {
|
||||
assets: 'assets',
|
||||
last_commit_info: 'last_commit_info',
|
||||
latest_changes: 'latest_changes',
|
||||
upload_file: 'upload_file',
|
||||
|
||||
Reference in New Issue
Block a user