Fix location for live preview.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user