{"action":"created","comment":{"url":"https://api.github.com/repos/andela/resly/pulls/comments/40566738","id":40566738,"diff_hunk":"@@ -0,0 +1,94 @@\n+$(document).ready(function() {\n+\n+  var tableTrack = {\n+    addedTables : {}\n+  };\n+\n+  /**\n+   *   This function takes the table data and\n+   *   updates the DOM, in the #added_tables section.\n+   */\n+\n+  function updateTable() {\n+    var keys = Object.keys(tableTrack.addedTables);\n+    var tableView = $(\"#added_tables\");\n+    if (keys.length === 0) {\n+      tableView.html(\"\");\n+      return false;\n+    }\n+\n+    tableView.html(\"<tr>\" +\n+      \"<th>Number of seats</th>\" +\n+      \"<th>Number of tables</th>\" +\n+      \"</tr>\");\n+\n+    for (var i = 0; i < keys.length; i++) {\n+      var row = \"<tr><td> \" + keys[i] + \" </td>\";\n+      row += \"<td> \" + tableTrack['addedTables'][keys[i]] + \" </td></tr>\"\n+      tableView.append(row);\n+    }\n+  }\n+\n+  /**\n+   *   This function alerts the user with necessary messages.\n+   */\n+\n+  var prompt = function(msg) {\n+    $('#prompt').show();\n+    $('#prompt').html(msg);\n+\n+    // Hide the alert\n+    $('#prompt').fadeOut(1600);\n+  };\n+\n+\n+  $('#add_table').click(function() {","path":"public/js/add_tables.js","position":45,"original_position":45,"commit_id":"90f0d07b5fcb2398b373f2b2b2c2c39b3db28401","original_commit_id":"90f0d07b5fcb2398b373f2b2b2c2c39b3db28401","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Mixed double and single quotes.","created_at":"2015-09-28T15:36:38Z","updated_at":"2015-09-28T15:36:38Z","html_url":"https://github.com/andela/resly/pull/30#discussion_r40566738","pull_request_url":"https://api.github.com/repos/andela/resly/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/andela/resly/pulls/comments/40566738"},"html":{"href":"https://github.com/andela/resly/pull/30#discussion_r40566738"},"pull_request":{"href":"https://api.github.com/repos/andela/resly/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/andela/resly/pulls/30","id":46169401,"html_url":"https://github.com/andela/resly/pull/30","diff_url":"https://github.com/andela/resly/pull/30.diff","patch_url":"https://github.com/andela/resly/pull/30.patch","issue_url":"https://api.github.com/repos/andela/resly/issues/30","number":30,"state":"open","locked":false,"title":"Merge add tables to develop branch","user":{"login":"andela-bmosigisi","id":9822168,"avatar_url":"https://avatars.githubusercontent.com/u/9822168?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-bmosigisi","html_url":"https://github.com/andela-bmosigisi","followers_url":"https://api.github.com/users/andela-bmosigisi/followers","following_url":"https://api.github.com/users/andela-bmosigisi/following{/other_user}","gists_url":"https://api.github.com/users/andela-bmosigisi/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-bmosigisi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-bmosigisi/subscriptions","organizations_url":"https://api.github.com/users/andela-bmosigisi/orgs","repos_url":"https://api.github.com/users/andela-bmosigisi/repos","events_url":"https://api.github.com/users/andela-bmosigisi/events{/privacy}","received_events_url":"https://api.github.com/users/andela-bmosigisi/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-28T15:17:15Z","updated_at":"2015-09-28T15:36:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4166023af0f9e908702c8bd8db6acae13417e36b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andela/resly/pulls/30/commits","review_comments_url":"https://api.github.com/repos/andela/resly/pulls/30/comments","review_comment_url":"https://api.github.com/repos/andela/resly/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/resly/issues/30/comments","statuses_url":"https://api.github.com/repos/andela/resly/statuses/90f0d07b5fcb2398b373f2b2b2c2c39b3db28401","head":{"label":"andela:feature/add-tables","ref":"feature/add-tables","sha":"90f0d07b5fcb2398b373f2b2b2c2c39b3db28401","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":41424312,"name":"resly","full_name":"andela/resly","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/resly","description":"Simulations Team Project, an online reservation system.","fork":false,"url":"https://api.github.com/repos/andela/resly","forks_url":"https://api.github.com/repos/andela/resly/forks","keys_url":"https://api.github.com/repos/andela/resly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/resly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/resly/teams","hooks_url":"https://api.github.com/repos/andela/resly/hooks","issue_events_url":"https://api.github.com/repos/andela/resly/issues/events{/number}","events_url":"https://api.github.com/repos/andela/resly/events","assignees_url":"https://api.github.com/repos/andela/resly/assignees{/user}","branches_url":"https://api.github.com/repos/andela/resly/branches{/branch}","tags_url":"https://api.github.com/repos/andela/resly/tags","blobs_url":"https://api.github.com/repos/andela/resly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/resly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/resly/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/resly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/resly/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/resly/languages","stargazers_url":"https://api.github.com/repos/andela/resly/stargazers","contributors_url":"https://api.github.com/repos/andela/resly/contributors","subscribers_url":"https://api.github.com/repos/andela/resly/subscribers","subscription_url":"https://api.github.com/repos/andela/resly/subscription","commits_url":"https://api.github.com/repos/andela/resly/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/resly/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/resly/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/resly/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/resly/contents/{+path}","compare_url":"https://api.github.com/repos/andela/resly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/resly/merges","archive_url":"https://api.github.com/repos/andela/resly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/resly/downloads","issues_url":"https://api.github.com/repos/andela/resly/issues{/number}","pulls_url":"https://api.github.com/repos/andela/resly/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/resly/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/resly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/resly/labels{/name}","releases_url":"https://api.github.com/repos/andela/resly/releases{/id}","created_at":"2015-08-26T12:29:29Z","updated_at":"2015-09-16T08:00:39Z","pushed_at":"2015-09-28T15:36:26Z","git_url":"git://github.com/andela/resly.git","ssh_url":"git@github.com:andela/resly.git","clone_url":"https://github.com/andela/resly.git","svn_url":"https://github.com/andela/resly","homepage":"","size":1072,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":1,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"08ed08f39a1ec7d8a6213b75da9bf4659296bea7","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":41424312,"name":"resly","full_name":"andela/resly","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/resly","description":"Simulations Team Project, an online reservation system.","fork":false,"url":"https://api.github.com/repos/andela/resly","forks_url":"https://api.github.com/repos/andela/resly/forks","keys_url":"https://api.github.com/repos/andela/resly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/resly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/resly/teams","hooks_url":"https://api.github.com/repos/andela/resly/hooks","issue_events_url":"https://api.github.com/repos/andela/resly/issues/events{/number}","events_url":"https://api.github.com/repos/andela/resly/events","assignees_url":"https://api.github.com/repos/andela/resly/assignees{/user}","branches_url":"https://api.github.com/repos/andela/resly/branches{/branch}","tags_url":"https://api.github.com/repos/andela/resly/tags","blobs_url":"https://api.github.com/repos/andela/resly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/resly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/resly/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/resly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/resly/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/resly/languages","stargazers_url":"https://api.github.com/repos/andela/resly/stargazers","contributors_url":"https://api.github.com/repos/andela/resly/contributors","subscribers_url":"https://api.github.com/repos/andela/resly/subscribers","subscription_url":"https://api.github.com/repos/andela/resly/subscription","commits_url":"https://api.github.com/repos/andela/resly/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/resly/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/resly/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/resly/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/resly/contents/{+path}","compare_url":"https://api.github.com/repos/andela/resly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/resly/merges","archive_url":"https://api.github.com/repos/andela/resly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/resly/downloads","issues_url":"https://api.github.com/repos/andela/resly/issues{/number}","pulls_url":"https://api.github.com/repos/andela/resly/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/resly/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/resly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/resly/labels{/name}","releases_url":"https://api.github.com/repos/andela/resly/releases{/id}","created_at":"2015-08-26T12:29:29Z","updated_at":"2015-09-16T08:00:39Z","pushed_at":"2015-09-28T15:36:26Z","git_url":"git://github.com/andela/resly.git","ssh_url":"git@github.com:andela/resly.git","clone_url":"https://github.com/andela/resly.git","svn_url":"https://github.com/andela/resly","homepage":"","size":1072,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/resly/pulls/30"},"html":{"href":"https://github.com/andela/resly/pull/30"},"issue":{"href":"https://api.github.com/repos/andela/resly/issues/30"},"comments":{"href":"https://api.github.com/repos/andela/resly/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/resly/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/resly/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/resly/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/andela/resly/statuses/90f0d07b5fcb2398b373f2b2b2c2c39b3db28401"}}}}