{"action":"created","comment":{"url":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/comments/63696827","id":63696827,"diff_hunk":"@@ -1,16 +1,13 @@\n-define(['jquery', 'app/timer', 'app/string'], function ($, timer, string) {\n+define(['jquery', 'app/lang', 'app/timer', 'app/string'], function ($, lang, timer, string) {\n   /* Function show for displaying normal, danger and warning messages.\n   * The message is included as html and a class with the corresponding type is\n   * added. Within the switch statement the icon is added.\n   */\n-  \n-  const THOUSAND = 1000;\n \n   return {\n     show: function(message, type, countdown) {\n-      countdown /= THOUSAND;\n       if (countdown > 0) {\n-        $(\"#show .message\").html(message + \"<br> <span class=\\\"countdownnotice\\\">Press enter to continue or wait <span class=\\\"countdown\\\" data-seconds=\\\"\" + countdown + \"\\\"></span> second\" + string.pluralIfAppropriate(countdown) + \".</span>\");\n+        $(\"#show .message\").html(message + \"<br> <span class=\\\"countdownnotice\\\">\" + lang(\"message_enterorwait\", \"<span class=\\\"countdown\\\" data-seconds=\\\"\" + countdown + \"\\\"></span>\"));","path":"app/messages.js","position":15,"original_position":15,"commit_id":"0d658099429760b1cf0235c87929975785713437","original_commit_id":"c9cabca0dbe9f186dfa240368fd62a7d8a45a339","user":{"login":"lauraBaakman","id":4301624,"avatar_url":"https://avatars.githubusercontent.com/u/4301624?v=3","gravatar_id":"","url":"https://api.github.com/users/lauraBaakman","html_url":"https://github.com/lauraBaakman","followers_url":"https://api.github.com/users/lauraBaakman/followers","following_url":"https://api.github.com/users/lauraBaakman/following{/other_user}","gists_url":"https://api.github.com/users/lauraBaakman/gists{/gist_id}","starred_url":"https://api.github.com/users/lauraBaakman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lauraBaakman/subscriptions","organizations_url":"https://api.github.com/users/lauraBaakman/orgs","repos_url":"https://api.github.com/users/lauraBaakman/repos","events_url":"https://api.github.com/users/lauraBaakman/events{/privacy}","received_events_url":"https://api.github.com/users/lauraBaakman/received_events","type":"User","site_admin":false},"body":"That's fine. Is that the case for all three cases where you generate part of the view in JavaScript? \n\nSent from my phone\n\n> On 18 May 2016, at 14:42, sdejong <notifications@github.com> wrote:\n> \n> In app/messages.js:\n> \n> >        if (countdown > 0) {\n> > -        $(\"#show .message\").html(message + \"<br> <span class=\\\"countdownnotice\\\">Press enter to continue or wait <span class=\\\"countdown\\\" data-seconds=\\\"\" + countdown + \"\\\"></span> second\" + string.pluralIfAppropriate(countdown) + \".</span>\");\n> > +        $(\"#show .message\").html(message + \"<br> <span class=\\\"countdownnotice\\\">\" + lang(\"message_enterorwait\", \"<span class=\\\"countdown\\\" data-seconds=\\\"\" + countdown + \"\\\"></span>\"));\n> I worked quite a long time on it and wasn't able to fix it, so I've made a Trello card for it to fix it in the future.\n> \n> —\n> You are receiving this because you were assigned.\n> Reply to this email directly or view it on GitHub\n> \n","created_at":"2016-05-18T12:56:39Z","updated_at":"2016-05-18T12:56:39Z","html_url":"https://github.com/RUGSoftEng/Team-5/pull/7#discussion_r63696827","pull_request_url":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/comments/63696827"},"html":{"href":"https://github.com/RUGSoftEng/Team-5/pull/7#discussion_r63696827"},"pull_request":{"href":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/7","id":69659446,"html_url":"https://github.com/RUGSoftEng/Team-5/pull/7","diff_url":"https://github.com/RUGSoftEng/Team-5/pull/7.diff","patch_url":"https://github.com/RUGSoftEng/Team-5/pull/7.patch","issue_url":"https://api.github.com/repos/RUGSoftEng/Team-5/issues/7","number":7,"state":"open","locked":false,"title":"Sprint8","user":{"login":"ewerkema","id":16745495,"avatar_url":"https://avatars.githubusercontent.com/u/16745495?v=3","gravatar_id":"","url":"https://api.github.com/users/ewerkema","html_url":"https://github.com/ewerkema","followers_url":"https://api.github.com/users/ewerkema/followers","following_url":"https://api.github.com/users/ewerkema/following{/other_user}","gists_url":"https://api.github.com/users/ewerkema/gists{/gist_id}","starred_url":"https://api.github.com/users/ewerkema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewerkema/subscriptions","organizations_url":"https://api.github.com/users/ewerkema/orgs","repos_url":"https://api.github.com/users/ewerkema/repos","events_url":"https://api.github.com/users/ewerkema/events{/privacy}","received_events_url":"https://api.github.com/users/ewerkema/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-11T11:58:26Z","updated_at":"2016-05-18T12:56:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a7564402a7f528867f4eca0f24a4e87639d2f91","assignee":{"login":"lauraBaakman","id":4301624,"avatar_url":"https://avatars.githubusercontent.com/u/4301624?v=3","gravatar_id":"","url":"https://api.github.com/users/lauraBaakman","html_url":"https://github.com/lauraBaakman","followers_url":"https://api.github.com/users/lauraBaakman/followers","following_url":"https://api.github.com/users/lauraBaakman/following{/other_user}","gists_url":"https://api.github.com/users/lauraBaakman/gists{/gist_id}","starred_url":"https://api.github.com/users/lauraBaakman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lauraBaakman/subscriptions","organizations_url":"https://api.github.com/users/lauraBaakman/orgs","repos_url":"https://api.github.com/users/lauraBaakman/repos","events_url":"https://api.github.com/users/lauraBaakman/events{/privacy}","received_events_url":"https://api.github.com/users/lauraBaakman/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/7/commits","review_comments_url":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/7/comments","review_comment_url":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RUGSoftEng/Team-5/issues/7/comments","statuses_url":"https://api.github.com/repos/RUGSoftEng/Team-5/statuses/0d658099429760b1cf0235c87929975785713437","head":{"label":"RUGSoftEng:sprint8","ref":"sprint8","sha":"0d658099429760b1cf0235c87929975785713437","user":{"login":"RUGSoftEng","id":17049951,"avatar_url":"https://avatars.githubusercontent.com/u/17049951?v=3","gravatar_id":"","url":"https://api.github.com/users/RUGSoftEng","html_url":"https://github.com/RUGSoftEng","followers_url":"https://api.github.com/users/RUGSoftEng/followers","following_url":"https://api.github.com/users/RUGSoftEng/following{/other_user}","gists_url":"https://api.github.com/users/RUGSoftEng/gists{/gist_id}","starred_url":"https://api.github.com/users/RUGSoftEng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RUGSoftEng/subscriptions","organizations_url":"https://api.github.com/users/RUGSoftEng/orgs","repos_url":"https://api.github.com/users/RUGSoftEng/repos","events_url":"https://api.github.com/users/RUGSoftEng/events{/privacy}","received_events_url":"https://api.github.com/users/RUGSoftEng/received_events","type":"Organization","site_admin":false},"repo":{"id":51758491,"name":"Team-5","full_name":"RUGSoftEng/Team-5","owner":{"login":"RUGSoftEng","id":17049951,"avatar_url":"https://avatars.githubusercontent.com/u/17049951?v=3","gravatar_id":"","url":"https://api.github.com/users/RUGSoftEng","html_url":"https://github.com/RUGSoftEng","followers_url":"https://api.github.com/users/RUGSoftEng/followers","following_url":"https://api.github.com/users/RUGSoftEng/following{/other_user}","gists_url":"https://api.github.com/users/RUGSoftEng/gists{/gist_id}","starred_url":"https://api.github.com/users/RUGSoftEng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RUGSoftEng/subscriptions","organizations_url":"https://api.github.com/users/RUGSoftEng/orgs","repos_url":"https://api.github.com/users/RUGSoftEng/repos","events_url":"https://api.github.com/users/RUGSoftEng/events{/privacy}","received_events_url":"https://api.github.com/users/RUGSoftEng/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RUGSoftEng/Team-5","description":"SlimStampen learning app","fork":false,"url":"https://api.github.com/repos/RUGSoftEng/Team-5","forks_url":"https://api.github.com/repos/RUGSoftEng/Team-5/forks","keys_url":"https://api.github.com/repos/RUGSoftEng/Team-5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RUGSoftEng/Team-5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RUGSoftEng/Team-5/teams","hooks_url":"https://api.github.com/repos/RUGSoftEng/Team-5/hooks","issue_events_url":"https://api.github.com/repos/RUGSoftEng/Team-5/issues/events{/number}","events_url":"https://api.github.com/repos/RUGSoftEng/Team-5/events","assignees_url":"https://api.github.com/repos/RUGSoftEng/Team-5/assignees{/user}","branches_url":"https://api.github.com/repos/RUGSoftEng/Team-5/branches{/branch}","tags_url":"https://api.github.com/repos/RUGSoftEng/Team-5/tags","blobs_url":"https://api.github.com/repos/RUGSoftEng/Team-5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RUGSoftEng/Team-5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RUGSoftEng/Team-5/git/refs{/sha}","trees_url":"https://api.github.com/repos/RUGSoftEng/Team-5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RUGSoftEng/Team-5/statuses/{sha}","languages_url":"https://api.github.com/repos/RUGSoftEng/Team-5/languages","stargazers_url":"https://api.github.com/repos/RUGSoftEng/Team-5/stargazers","contributors_url":"https://api.github.com/repos/RUGSoftEng/Team-5/contributors","subscribers_url":"https://api.github.com/repos/RUGSoftEng/Team-5/subscribers","subscription_url":"https://api.github.com/repos/RUGSoftEng/Team-5/subscription","commits_url":"https://api.github.com/repos/RUGSoftEng/Team-5/commits{/sha}","git_commits_url":"https://api.github.com/repos/RUGSoftEng/Team-5/git/commits{/sha}","comments_url":"https://api.github.com/repos/RUGSoftEng/Team-5/comments{/number}","issue_comment_url":"https://api.github.com/repos/RUGSoftEng/Team-5/issues/comments{/number}","contents_url":"https://api.github.com/repos/RUGSoftEng/Team-5/contents/{+path}","compare_url":"https://api.github.com/repos/RUGSoftEng/Team-5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RUGSoftEng/Team-5/merges","archive_url":"https://api.github.com/repos/RUGSoftEng/Team-5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RUGSoftEng/Team-5/downloads","issues_url":"https://api.github.com/repos/RUGSoftEng/Team-5/issues{/number}","pulls_url":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls{/number}","milestones_url":"https://api.github.com/repos/RUGSoftEng/Team-5/milestones{/number}","notifications_url":"https://api.github.com/repos/RUGSoftEng/Team-5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RUGSoftEng/Team-5/labels{/name}","releases_url":"https://api.github.com/repos/RUGSoftEng/Team-5/releases{/id}","deployments_url":"https://api.github.com/repos/RUGSoftEng/Team-5/deployments","created_at":"2016-02-15T13:47:26Z","updated_at":"2016-03-05T09:47:22Z","pushed_at":"2016-05-18T11:03:39Z","git_url":"git://github.com/RUGSoftEng/Team-5.git","ssh_url":"git@github.com:RUGSoftEng/Team-5.git","clone_url":"https://github.com/RUGSoftEng/Team-5.git","svn_url":"https://github.com/RUGSoftEng/Team-5","homepage":"","size":147370,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"RUGSoftEng:master","ref":"master","sha":"ec9f43e94f790e6dad71f1effbeb29040e230f06","user":{"login":"RUGSoftEng","id":17049951,"avatar_url":"https://avatars.githubusercontent.com/u/17049951?v=3","gravatar_id":"","url":"https://api.github.com/users/RUGSoftEng","html_url":"https://github.com/RUGSoftEng","followers_url":"https://api.github.com/users/RUGSoftEng/followers","following_url":"https://api.github.com/users/RUGSoftEng/following{/other_user}","gists_url":"https://api.github.com/users/RUGSoftEng/gists{/gist_id}","starred_url":"https://api.github.com/users/RUGSoftEng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RUGSoftEng/subscriptions","organizations_url":"https://api.github.com/users/RUGSoftEng/orgs","repos_url":"https://api.github.com/users/RUGSoftEng/repos","events_url":"https://api.github.com/users/RUGSoftEng/events{/privacy}","received_events_url":"https://api.github.com/users/RUGSoftEng/received_events","type":"Organization","site_admin":false},"repo":{"id":51758491,"name":"Team-5","full_name":"RUGSoftEng/Team-5","owner":{"login":"RUGSoftEng","id":17049951,"avatar_url":"https://avatars.githubusercontent.com/u/17049951?v=3","gravatar_id":"","url":"https://api.github.com/users/RUGSoftEng","html_url":"https://github.com/RUGSoftEng","followers_url":"https://api.github.com/users/RUGSoftEng/followers","following_url":"https://api.github.com/users/RUGSoftEng/following{/other_user}","gists_url":"https://api.github.com/users/RUGSoftEng/gists{/gist_id}","starred_url":"https://api.github.com/users/RUGSoftEng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RUGSoftEng/subscriptions","organizations_url":"https://api.github.com/users/RUGSoftEng/orgs","repos_url":"https://api.github.com/users/RUGSoftEng/repos","events_url":"https://api.github.com/users/RUGSoftEng/events{/privacy}","received_events_url":"https://api.github.com/users/RUGSoftEng/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RUGSoftEng/Team-5","description":"SlimStampen learning app","fork":false,"url":"https://api.github.com/repos/RUGSoftEng/Team-5","forks_url":"https://api.github.com/repos/RUGSoftEng/Team-5/forks","keys_url":"https://api.github.com/repos/RUGSoftEng/Team-5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RUGSoftEng/Team-5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RUGSoftEng/Team-5/teams","hooks_url":"https://api.github.com/repos/RUGSoftEng/Team-5/hooks","issue_events_url":"https://api.github.com/repos/RUGSoftEng/Team-5/issues/events{/number}","events_url":"https://api.github.com/repos/RUGSoftEng/Team-5/events","assignees_url":"https://api.github.com/repos/RUGSoftEng/Team-5/assignees{/user}","branches_url":"https://api.github.com/repos/RUGSoftEng/Team-5/branches{/branch}","tags_url":"https://api.github.com/repos/RUGSoftEng/Team-5/tags","blobs_url":"https://api.github.com/repos/RUGSoftEng/Team-5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RUGSoftEng/Team-5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RUGSoftEng/Team-5/git/refs{/sha}","trees_url":"https://api.github.com/repos/RUGSoftEng/Team-5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RUGSoftEng/Team-5/statuses/{sha}","languages_url":"https://api.github.com/repos/RUGSoftEng/Team-5/languages","stargazers_url":"https://api.github.com/repos/RUGSoftEng/Team-5/stargazers","contributors_url":"https://api.github.com/repos/RUGSoftEng/Team-5/contributors","subscribers_url":"https://api.github.com/repos/RUGSoftEng/Team-5/subscribers","subscription_url":"https://api.github.com/repos/RUGSoftEng/Team-5/subscription","commits_url":"https://api.github.com/repos/RUGSoftEng/Team-5/commits{/sha}","git_commits_url":"https://api.github.com/repos/RUGSoftEng/Team-5/git/commits{/sha}","comments_url":"https://api.github.com/repos/RUGSoftEng/Team-5/comments{/number}","issue_comment_url":"https://api.github.com/repos/RUGSoftEng/Team-5/issues/comments{/number}","contents_url":"https://api.github.com/repos/RUGSoftEng/Team-5/contents/{+path}","compare_url":"https://api.github.com/repos/RUGSoftEng/Team-5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RUGSoftEng/Team-5/merges","archive_url":"https://api.github.com/repos/RUGSoftEng/Team-5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RUGSoftEng/Team-5/downloads","issues_url":"https://api.github.com/repos/RUGSoftEng/Team-5/issues{/number}","pulls_url":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls{/number}","milestones_url":"https://api.github.com/repos/RUGSoftEng/Team-5/milestones{/number}","notifications_url":"https://api.github.com/repos/RUGSoftEng/Team-5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RUGSoftEng/Team-5/labels{/name}","releases_url":"https://api.github.com/repos/RUGSoftEng/Team-5/releases{/id}","deployments_url":"https://api.github.com/repos/RUGSoftEng/Team-5/deployments","created_at":"2016-02-15T13:47:26Z","updated_at":"2016-03-05T09:47:22Z","pushed_at":"2016-05-18T11:03:39Z","git_url":"git://github.com/RUGSoftEng/Team-5.git","ssh_url":"git@github.com:RUGSoftEng/Team-5.git","clone_url":"https://github.com/RUGSoftEng/Team-5.git","svn_url":"https://github.com/RUGSoftEng/Team-5","homepage":"","size":147370,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/7"},"html":{"href":"https://github.com/RUGSoftEng/Team-5/pull/7"},"issue":{"href":"https://api.github.com/repos/RUGSoftEng/Team-5/issues/7"},"comments":{"href":"https://api.github.com/repos/RUGSoftEng/Team-5/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/RUGSoftEng/Team-5/statuses/0d658099429760b1cf0235c87929975785713437"}}}}