Permalink
Browse files

add back button js handler

  • Loading branch information...
1 parent 2a4cf0e commit d77a02eea85eceaa70c0d625b19f0a1416aba077 @artnez committed May 21, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/faceoff/static/js/faceoff.js
@@ -19,4 +19,10 @@ jQuery(function($) {
setTimeout(function() {
$('#report button[type=submit]').attr('disabled', false);
}, 2000);
+
+ // back buttons
+ $('a.go-back').click(function() {
+ history && history.go(-1);
+ return false;
+ });
});

0 comments on commit d77a02e

Please sign in to comment.