Fix location for live preview.

This commit is contained in:
bootstraponline
2012-06-11 10:07:17 -06:00
parent 0cb39f049f
commit e1ce3d46de
@@ -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