Challenge 5: changing username working
This commit is contained in:
		| @ -1,16 +1,18 @@ | ||||
| $(document).ready(function () { | ||||
|     getVotings() | ||||
|     getVotings(); | ||||
|     login('Guest'); | ||||
| }) | ||||
|  | ||||
| function login(user) { | ||||
|     $("#name").text(user); | ||||
|     $.get("votings/login?user=" + user, function (result, status) { | ||||
|  | ||||
|     }) | ||||
|     }); | ||||
| } | ||||
|  | ||||
|  | ||||
| function getVotings() { | ||||
|     $.get("votings/", function (result, status) { | ||||
|  | ||||
|     }) | ||||
| } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user