Commits

Anonymous committed 08afac1

slight improvements in error messaging

  • Participants
  • Parent commits d9ddf74

Comments (0)

Files changed (1)

 	  background-color: #eee;
 	  padding:15px;
 	}
+	
+	.small-button { font-size:12px; }
 
 	
 </style>
 
 function on_auth_fail(request, status, error) {
 	clear_output();
-	$("#account").html('<span style="color:red">Your access token is invalid or has been revoked!  Try refreshing it above.</span>');
+	$("#account").html('<span style="color:red">Your access token is invalid or has been revoked!  Try getting a new one with the "Reset Access Token" button.</span>');
 	
 }
 
 		reset_output();
 		api_auth(user_site, on_auth_success, on_auth_fail);
 		e.preventDefault();
-	});
+	}).button();
 
 	$("#token_reset").click(function (e) {
 		api_abort_queue();
 		api_reset_access_token(client_id);
 		e.preventDefault();
-	});
+	}).button();
 
 	$("#revoke").click(function (e) {
 		clear_output();
 
 <i>Badges?  We don't need no <a href="http://www.youtube.com/watch?v=TFwprS_L6tg">stinking badges!</a></i>
 
-<p><a href="#" id="refresh">Refresh</a> - <a href="#" id="token_reset">Reset Access Token</a></p>
-
-
 <p>Check my progress on: <select id="siteselect">
 <option value="stackoverflow">Stack Overflow</option>
 <option value="serverfault">Server Fault</option>
 <option value="meta.cogsci">Cognitive Sciences Meta</option>
 </select></p>
 <p>
-Your account on this site: <span id="account">(No account information loaded yet)</span>
+Your account on this site: <span id="account">(No account information loaded yet)</span>   
+<a href="#" class="small-button" id="refresh">Refresh</a>   
+<a href="#" class="small-button" id="token_reset">Reset Access Token</a>
 </p>
 <p></p>