Browse files

Improve "go_back" behavior

  • Loading branch information...
1 parent e96fefc commit 0643b3739242985665d61bcf0a7acbe40776606e @fdev31 committed Apr 10, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 drink/static/main.js
View
6 drink/static/main.js
@@ -40,10 +40,10 @@ ui = new Object({
$('#comments').html('');
},
go_back: function() {
- if (document.location.pathname != base_path) {
- document.location.href = base_path;
- } else {
+ if (drink.cur_action === drink.d.default_action) {
document.location.href = base_path+'../';
+ } else {
+ drink.serve(undefined, drink.d.default_action);
}
},
load_html_content: function(data) {

0 comments on commit 0643b37

Please sign in to comment.