Fix location for live preview.
This commit is contained in:
@@ -97,7 +97,7 @@ $.save = function( commitMessage ) {
|
|||||||
url: '/create',
|
url: '/create',
|
||||||
data: { page: pageName, format: markdown, content: txt, message: commitMessage || msg },
|
data: { page: pageName, format: markdown, content: txt, message: commitMessage || msg },
|
||||||
success: function() {
|
success: function() {
|
||||||
location = newLocation;
|
win.location = newLocation;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@@ -106,7 +106,7 @@ $.save = function( commitMessage ) {
|
|||||||
url: '/edit/' + pageName,
|
url: '/edit/' + pageName,
|
||||||
data: { format: markdown, content: txt, message: commitMessage || msg },
|
data: { format: markdown, content: txt, message: commitMessage || msg },
|
||||||
success: function() {
|
success: function() {
|
||||||
location = newLocation;
|
win.location = newLocation;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} // end else
|
} // end else
|
||||||
|
|||||||
Reference in New Issue
Block a user