summaryrefslogtreecommitdiff
path: root/src/scripts/profile.entry.ts
diff options
context:
space:
mode:
authorGeorgios Andreadis <G.Andreadis@student.tudelft.nl>2017-01-27 10:26:54 +0100
committerGitHub <noreply@github.com>2017-01-27 10:26:54 +0100
commit50fcb0634c9ebe894988103184d50d372bc76907 (patch)
tree5af172c03599f7c680cd32205eab5329b841c85c /src/scripts/profile.entry.ts
parent3ad08353d289720cf8f43e1dba078da43c35e97d (diff)
parentb462c9183ec7c2e41f14daad49f03d8afaa4ec59 (diff)
Merge pull request #4 from tudelft-atlarge/states-batch-fetch
Fetch experiment states in one batch
Diffstat (limited to 'src/scripts/profile.entry.ts')
-rw-r--r--src/scripts/profile.entry.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scripts/profile.entry.ts b/src/scripts/profile.entry.ts
index 57c6b56c..b194e3a9 100644
--- a/src/scripts/profile.entry.ts
+++ b/src/scripts/profile.entry.ts
@@ -6,14 +6,14 @@ window["jQuery"] = $;
$(document).ready(() => {
- let api = new APIController(() => {
+ const api = new APIController(() => {
});
$("#delete-account").on("click", () => {
- let modalDialog = <any>$("#confirm-delete-account");
+ const modalDialog = <any>$("#confirm-delete-account");
// Function called on delete confirmation
- let callback = () => {
+ const callback = () => {
api.deleteUser(parseInt(localStorage.getItem("userId"))).then(() => {
removeUserInfo();
gapi.auth2.getAuthInstance().signOut().then(() => {
@@ -23,7 +23,7 @@ $(document).ready(() => {
modalDialog.find("button.confirm").off();
modalDialog.modal("hide");
- let alert = $(".account-delete-alert");
+ const alert = $(".account-delete-alert");
alert.find("code").text(reason.code + ": " + reason.description);
alert.slideDown(200);