Fixup: typo and correct asset path

This commit is contained in:
Dawa Ometto
2018-10-20 00:47:35 +02:00
parent 83fbb16c3b
commit 4e2b1442bd
2 changed files with 2 additions and 2 deletions
@@ -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 ] || '')
+1 -1
View File
@@ -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',