{"action":"created","comment":{"url":"https://api.github.com/repos/thelounge/lounge/pulls/comments/77486149","id":77486149,"diff_hunk":"@@ -742,13 +749,29 @@ $(function() {\n \t\t}\n \t}\n \n-\tsidebar.on(\"click\", \".chan, button\", function() {\n+\tsidebar.on(\"click\", \".chan, button\", function(e, data) {\n \t\tvar self = $(this);\n \t\tvar target = self.data(\"target\");\n \t\tif (!target) {\n \t\t\treturn;\n \t\t}\n \n+\t\tif (!data || data.pushState !== false) {\n+\t\t\tvar state = {","path":"client/js/lounge.js","position":27,"original_position":27,"commit_id":"5415569bbbeb6933e7786832d871a95667c34d1a","original_commit_id":"5415569bbbeb6933e7786832d871a95667c34d1a","user":{"login":"xPaw","id":613331,"avatar_url":"https://avatars.githubusercontent.com/u/613331?v=3","gravatar_id":"","url":"https://api.github.com/users/xPaw","html_url":"https://github.com/xPaw","followers_url":"https://api.github.com/users/xPaw/followers","following_url":"https://api.github.com/users/xPaw/following{/other_user}","gists_url":"https://api.github.com/users/xPaw/gists{/gist_id}","starred_url":"https://api.github.com/users/xPaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xPaw/subscriptions","organizations_url":"https://api.github.com/users/xPaw/orgs","repos_url":"https://api.github.com/users/xPaw/repos","events_url":"https://api.github.com/users/xPaw/events{/privacy}","received_events_url":"https://api.github.com/users/xPaw/received_events","type":"User","site_admin":false},"body":"This could be done with DOM only, not necessary to have an array","created_at":"2016-09-05T08:30:07Z","updated_at":"2016-09-05T08:30:07Z","html_url":"https://github.com/thelounge/lounge/pull/575#discussion_r77486149","pull_request_url":"https://api.github.com/repos/thelounge/lounge/pulls/575","_links":{"self":{"href":"https://api.github.com/repos/thelounge/lounge/pulls/comments/77486149"},"html":{"href":"https://github.com/thelounge/lounge/pull/575#discussion_r77486149"},"pull_request":{"href":"https://api.github.com/repos/thelounge/lounge/pulls/575"}}},"pull_request":{"url":"https://api.github.com/repos/thelounge/lounge/pulls/575","id":81988131,"html_url":"https://github.com/thelounge/lounge/pull/575","diff_url":"https://github.com/thelounge/lounge/pull/575.diff","patch_url":"https://github.com/thelounge/lounge/pull/575.patch","issue_url":"https://api.github.com/repos/thelounge/lounge/issues/575","number":575,"state":"open","locked":false,"title":"client: implement History Web API","user":{"login":"williamboman","id":6705160,"avatar_url":"https://avatars.githubusercontent.com/u/6705160?v=3","gravatar_id":"","url":"https://api.github.com/users/williamboman","html_url":"https://github.com/williamboman","followers_url":"https://api.github.com/users/williamboman/followers","following_url":"https://api.github.com/users/williamboman/following{/other_user}","gists_url":"https://api.github.com/users/williamboman/gists{/gist_id}","starred_url":"https://api.github.com/users/williamboman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williamboman/subscriptions","organizations_url":"https://api.github.com/users/williamboman/orgs","repos_url":"https://api.github.com/users/williamboman/repos","events_url":"https://api.github.com/users/williamboman/events{/privacy}","received_events_url":"https://api.github.com/users/williamboman/received_events","type":"User","site_admin":false},"body":"¯\\\\\\_(ツ)_/¯ I like it. It's really nice on mobile devices. This PR does not include any URL routing whatsoever.\r\n\r\n![history](https://cloud.githubusercontent.com/assets/6705160/17812622/2c6fcc12-6628-11e6-847c-e1033e139c1a.gif)\r\n\r\nCloses #574.","created_at":"2016-08-19T14:16:33Z","updated_at":"2016-09-05T08:30:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"949e31625713086a5f213c79851372e97a22f3da","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/thelounge/lounge/milestones/2","html_url":"https://github.com/thelounge/lounge/milestones/Next%20Release","labels_url":"https://api.github.com/repos/thelounge/lounge/milestones/2/labels","id":1779510,"number":2,"title":"Next Release","description":"","creator":{"login":"xPaw","id":613331,"avatar_url":"https://avatars.githubusercontent.com/u/613331?v=3","gravatar_id":"","url":"https://api.github.com/users/xPaw","html_url":"https://github.com/xPaw","followers_url":"https://api.github.com/users/xPaw/followers","following_url":"https://api.github.com/users/xPaw/following{/other_user}","gists_url":"https://api.github.com/users/xPaw/gists{/gist_id}","starred_url":"https://api.github.com/users/xPaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xPaw/subscriptions","organizations_url":"https://api.github.com/users/xPaw/orgs","repos_url":"https://api.github.com/users/xPaw/repos","events_url":"https://api.github.com/users/xPaw/events{/privacy}","received_events_url":"https://api.github.com/users/xPaw/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":0,"state":"open","created_at":"2016-05-20T18:38:01Z","updated_at":"2016-08-20T03:22:42Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/thelounge/lounge/pulls/575/commits","review_comments_url":"https://api.github.com/repos/thelounge/lounge/pulls/575/comments","review_comment_url":"https://api.github.com/repos/thelounge/lounge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thelounge/lounge/issues/575/comments","statuses_url":"https://api.github.com/repos/thelounge/lounge/statuses/5415569bbbeb6933e7786832d871a95667c34d1a","head":{"label":"williamboman:feat/history","ref":"feat/history","sha":"5415569bbbeb6933e7786832d871a95667c34d1a","user":{"login":"williamboman","id":6705160,"avatar_url":"https://avatars.githubusercontent.com/u/6705160?v=3","gravatar_id":"","url":"https://api.github.com/users/williamboman","html_url":"https://github.com/williamboman","followers_url":"https://api.github.com/users/williamboman/followers","following_url":"https://api.github.com/users/williamboman/following{/other_user}","gists_url":"https://api.github.com/users/williamboman/gists{/gist_id}","starred_url":"https://api.github.com/users/williamboman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williamboman/subscriptions","organizations_url":"https://api.github.com/users/williamboman/orgs","repos_url":"https://api.github.com/users/williamboman/repos","events_url":"https://api.github.com/users/williamboman/events{/privacy}","received_events_url":"https://api.github.com/users/williamboman/received_events","type":"User","site_admin":false},"repo":{"id":51698110,"name":"lounge","full_name":"williamboman/lounge","owner":{"login":"williamboman","id":6705160,"avatar_url":"https://avatars.githubusercontent.com/u/6705160?v=3","gravatar_id":"","url":"https://api.github.com/users/williamboman","html_url":"https://github.com/williamboman","followers_url":"https://api.github.com/users/williamboman/followers","following_url":"https://api.github.com/users/williamboman/following{/other_user}","gists_url":"https://api.github.com/users/williamboman/gists{/gist_id}","starred_url":"https://api.github.com/users/williamboman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williamboman/subscriptions","organizations_url":"https://api.github.com/users/williamboman/orgs","repos_url":"https://api.github.com/users/williamboman/repos","events_url":"https://api.github.com/users/williamboman/events{/privacy}","received_events_url":"https://api.github.com/users/williamboman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/williamboman/lounge","description":"The Lounge — Self-hosted web IRC client","fork":true,"url":"https://api.github.com/repos/williamboman/lounge","forks_url":"https://api.github.com/repos/williamboman/lounge/forks","keys_url":"https://api.github.com/repos/williamboman/lounge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/williamboman/lounge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/williamboman/lounge/teams","hooks_url":"https://api.github.com/repos/williamboman/lounge/hooks","issue_events_url":"https://api.github.com/repos/williamboman/lounge/issues/events{/number}","events_url":"https://api.github.com/repos/williamboman/lounge/events","assignees_url":"https://api.github.com/repos/williamboman/lounge/assignees{/user}","branches_url":"https://api.github.com/repos/williamboman/lounge/branches{/branch}","tags_url":"https://api.github.com/repos/williamboman/lounge/tags","blobs_url":"https://api.github.com/repos/williamboman/lounge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/williamboman/lounge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/williamboman/lounge/git/refs{/sha}","trees_url":"https://api.github.com/repos/williamboman/lounge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/williamboman/lounge/statuses/{sha}","languages_url":"https://api.github.com/repos/williamboman/lounge/languages","stargazers_url":"https://api.github.com/repos/williamboman/lounge/stargazers","contributors_url":"https://api.github.com/repos/williamboman/lounge/contributors","subscribers_url":"https://api.github.com/repos/williamboman/lounge/subscribers","subscription_url":"https://api.github.com/repos/williamboman/lounge/subscription","commits_url":"https://api.github.com/repos/williamboman/lounge/commits{/sha}","git_commits_url":"https://api.github.com/repos/williamboman/lounge/git/commits{/sha}","comments_url":"https://api.github.com/repos/williamboman/lounge/comments{/number}","issue_comment_url":"https://api.github.com/repos/williamboman/lounge/issues/comments{/number}","contents_url":"https://api.github.com/repos/williamboman/lounge/contents/{+path}","compare_url":"https://api.github.com/repos/williamboman/lounge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/williamboman/lounge/merges","archive_url":"https://api.github.com/repos/williamboman/lounge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/williamboman/lounge/downloads","issues_url":"https://api.github.com/repos/williamboman/lounge/issues{/number}","pulls_url":"https://api.github.com/repos/williamboman/lounge/pulls{/number}","milestones_url":"https://api.github.com/repos/williamboman/lounge/milestones{/number}","notifications_url":"https://api.github.com/repos/williamboman/lounge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/williamboman/lounge/labels{/name}","releases_url":"https://api.github.com/repos/williamboman/lounge/releases{/id}","deployments_url":"https://api.github.com/repos/williamboman/lounge/deployments","created_at":"2016-02-14T14:36:36Z","updated_at":"2016-02-14T14:36:39Z","pushed_at":"2016-09-04T21:46:25Z","git_url":"git://github.com/williamboman/lounge.git","ssh_url":"git@github.com:williamboman/lounge.git","clone_url":"https://github.com/williamboman/lounge.git","svn_url":"https://github.com/williamboman/lounge","homepage":"https://thelounge.github.io","size":5386,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"thelounge:master","ref":"master","sha":"7f6dfe1652f189e386a20a5f4bd5ab943da923fc","user":{"login":"thelounge","id":14336958,"avatar_url":"https://avatars.githubusercontent.com/u/14336958?v=3","gravatar_id":"","url":"https://api.github.com/users/thelounge","html_url":"https://github.com/thelounge","followers_url":"https://api.github.com/users/thelounge/followers","following_url":"https://api.github.com/users/thelounge/following{/other_user}","gists_url":"https://api.github.com/users/thelounge/gists{/gist_id}","starred_url":"https://api.github.com/users/thelounge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thelounge/subscriptions","organizations_url":"https://api.github.com/users/thelounge/orgs","repos_url":"https://api.github.com/users/thelounge/repos","events_url":"https://api.github.com/users/thelounge/events{/privacy}","received_events_url":"https://api.github.com/users/thelounge/received_events","type":"Organization","site_admin":false},"repo":{"id":51344082,"name":"lounge","full_name":"thelounge/lounge","owner":{"login":"thelounge","id":14336958,"avatar_url":"https://avatars.githubusercontent.com/u/14336958?v=3","gravatar_id":"","url":"https://api.github.com/users/thelounge","html_url":"https://github.com/thelounge","followers_url":"https://api.github.com/users/thelounge/followers","following_url":"https://api.github.com/users/thelounge/following{/other_user}","gists_url":"https://api.github.com/users/thelounge/gists{/gist_id}","starred_url":"https://api.github.com/users/thelounge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thelounge/subscriptions","organizations_url":"https://api.github.com/users/thelounge/orgs","repos_url":"https://api.github.com/users/thelounge/repos","events_url":"https://api.github.com/users/thelounge/events{/privacy}","received_events_url":"https://api.github.com/users/thelounge/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thelounge/lounge","description":"The Lounge — Self-hosted web IRC client","fork":false,"url":"https://api.github.com/repos/thelounge/lounge","forks_url":"https://api.github.com/repos/thelounge/lounge/forks","keys_url":"https://api.github.com/repos/thelounge/lounge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thelounge/lounge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thelounge/lounge/teams","hooks_url":"https://api.github.com/repos/thelounge/lounge/hooks","issue_events_url":"https://api.github.com/repos/thelounge/lounge/issues/events{/number}","events_url":"https://api.github.com/repos/thelounge/lounge/events","assignees_url":"https://api.github.com/repos/thelounge/lounge/assignees{/user}","branches_url":"https://api.github.com/repos/thelounge/lounge/branches{/branch}","tags_url":"https://api.github.com/repos/thelounge/lounge/tags","blobs_url":"https://api.github.com/repos/thelounge/lounge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thelounge/lounge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thelounge/lounge/git/refs{/sha}","trees_url":"https://api.github.com/repos/thelounge/lounge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thelounge/lounge/statuses/{sha}","languages_url":"https://api.github.com/repos/thelounge/lounge/languages","stargazers_url":"https://api.github.com/repos/thelounge/lounge/stargazers","contributors_url":"https://api.github.com/repos/thelounge/lounge/contributors","subscribers_url":"https://api.github.com/repos/thelounge/lounge/subscribers","subscription_url":"https://api.github.com/repos/thelounge/lounge/subscription","commits_url":"https://api.github.com/repos/thelounge/lounge/commits{/sha}","git_commits_url":"https://api.github.com/repos/thelounge/lounge/git/commits{/sha}","comments_url":"https://api.github.com/repos/thelounge/lounge/comments{/number}","issue_comment_url":"https://api.github.com/repos/thelounge/lounge/issues/comments{/number}","contents_url":"https://api.github.com/repos/thelounge/lounge/contents/{+path}","compare_url":"https://api.github.com/repos/thelounge/lounge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thelounge/lounge/merges","archive_url":"https://api.github.com/repos/thelounge/lounge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thelounge/lounge/downloads","issues_url":"https://api.github.com/repos/thelounge/lounge/issues{/number}","pulls_url":"https://api.github.com/repos/thelounge/lounge/pulls{/number}","milestones_url":"https://api.github.com/repos/thelounge/lounge/milestones{/number}","notifications_url":"https://api.github.com/repos/thelounge/lounge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thelounge/lounge/labels{/name}","releases_url":"https://api.github.com/repos/thelounge/lounge/releases{/id}","deployments_url":"https://api.github.com/repos/thelounge/lounge/deployments","created_at":"2016-02-09T03:16:03Z","updated_at":"2016-09-05T08:14:47Z","pushed_at":"2016-09-04T21:46:25Z","git_url":"git://github.com/thelounge/lounge.git","ssh_url":"git@github.com:thelounge/lounge.git","clone_url":"https://github.com/thelounge/lounge.git","svn_url":"https://github.com/thelounge/lounge","homepage":"https://thelounge.github.io","size":6611,"stargazers_count":643,"watchers_count":643,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":82,"mirror_url":null,"open_issues_count":150,"forks":82,"open_issues":150,"watchers":643,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thelounge/lounge/pulls/575"},"html":{"href":"https://github.com/thelounge/lounge/pull/575"},"issue":{"href":"https://api.github.com/repos/thelounge/lounge/issues/575"},"comments":{"href":"https://api.github.com/repos/thelounge/lounge/issues/575/comments"},"review_comments":{"href":"https://api.github.com/repos/thelounge/lounge/pulls/575/comments"},"review_comment":{"href":"https://api.github.com/repos/thelounge/lounge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thelounge/lounge/pulls/575/commits"},"statuses":{"href":"https://api.github.com/repos/thelounge/lounge/statuses/5415569bbbeb6933e7786832d871a95667c34d1a"}}}}
{"actor":{"display_login":"xPaw"}}