Permalink
Browse files

Fix location.

  • Loading branch information...
1 parent 90bfb3c commit 6de87c1be1e4f388eb65c135f84940aa25e32ce6 @bootstraponline bootstraponline committed Jun 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 public/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

0 comments on commit 6de87c1

Please sign in to comment.