Permalink
Browse files

Instead of showing a JS Alert for rack bug enabling/disabling, reload…

… the page
  • Loading branch information...
1 parent 7669176 commit c6002b7eb6464698342f7502b64238d8962d2abd @noahd1 noahd1 committed with Sep 17, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rack/bug/public/__rack_bug__/bookmarklet.js
@@ -203,12 +203,12 @@ document.rackBugBookmarklet = function() {
if (document.readCookie('rack_bug_password')) {
document.eraseCookie('rack_bug_password');
document.eraseCookie('rack_bug_enabled');
- alert('Rack::Bug Disabled');
+ window.location.reload();
} else {
var password = prompt("Rack::Bug password:", "")
document.createCookie('rack_bug_password', document.SHA1('rack_bug:'+password));
document.createCookie('rack_bug_enabled', "1");
- alert('Rack::Bug Enabled');
+ window.location.reload();
}
}

0 comments on commit c6002b7

Please sign in to comment.