Commits

Anonymous committed 48f11c7

Removed history navigation until I can fix it properly.

Comments (0)

Files changed (1)

js/noprocrast/noprocrast.js

     };
 
     if (minutes > threshold) {
-        dialog = new AJS.Dialog();
+        dialog = new AJS.Dialog(450, 480);
         dialog.addHeader(header);
 
         message = '';
 
         dialog.addCancel("Woah, get me out of here", function() {
             var path = AJS.Confluence.getContextPath();
-            if (history.length > 1) {
-                history.go(-1);
-            } else if (path) {
+            if (path) {
                 document.location = path;
             } else {
                 document.location = "/";
             }
+            return false;
         });
         dialog.addSubmit("Just let me in!", function() {
             dialog.hide();