1. Brian McKenna
  2. confluence-noprocrast

Commits

Brian McKenna  committed 48f11c7

Removed history navigation until I can fix it properly.

  • Participants
  • Parent commits 2d84bf6
  • Branches default

Comments (0)

Files changed (1)

File js/noprocrast/noprocrast.js

View file
     };
 
     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();