diff --git a/lib/gollum/frontend/public/gollum/livepreview/js/livepreview/livepreview.js b/lib/gollum/frontend/public/gollum/livepreview/js/livepreview/livepreview.js index bb5dad3a..5524bd6e 100644 --- a/lib/gollum/frontend/public/gollum/livepreview/js/livepreview/livepreview.js +++ b/lib/gollum/frontend/public/gollum/livepreview/js/livepreview/livepreview.js @@ -97,7 +97,7 @@ $.save = function( commitMessage ) { url: '/create', data: { page: pageName, format: markdown, content: txt, message: commitMessage || msg }, success: function() { - location = newLocation; + win.location = newLocation; } }); } else { @@ -106,7 +106,7 @@ $.save = function( commitMessage ) { url: '/edit/' + pageName, data: { format: markdown, content: txt, message: commitMessage || msg }, success: function() { - location = newLocation; + win.location = newLocation; } }); } // end else