{"action":"created","comment":{"url":"https://api.github.com/repos/code-mancers/leave-tracker/pulls/comments/72598326","id":72598326,"diff_hunk":"@@ -14,4 +14,41 @@\n //= require jquery_ujs\n //= require turbolinks\n //= require bootstrap-sprockets\n+//= require select2-full\n+//= require moment\n+//= require bootstrap-datetimepicker\n //= require_tree .\n+$(function() {\n+  $(\"select#user_calendar_id\").select2();\n+\n+  $(\"#duration\").change(function() {\n+    if(this.checked) {\n+        $(\"#row\").show();\n+        $(\"#endDiv\").hide();\n+    }\n+    else {\n+        $(\"#row\").hide();\n+        $('#leave_duration_First_Half').removeAttr('checked');\n+        $('#leave_duration_Second_Half').removeAttr('checked');\n+        $(\"#endDiv\").show();\n+    }\n+});\n+});\n+$(function () {\n+    $('.start').datetimepicker({\n+      format: 'DD/MM/YYYY'\n+    });\n+    $('.end').datetimepicker({\n+        useCurrent: false,\n+        format: 'DD/MM/YYYY'\n+    });\n+    $(\".start\").on(\"dp.change\", function (e) {\n+        $('.end').data(\"DateTimePicker\").minDate(e.date);","path":"app/assets/javascripts/application.js","position":33,"original_position":33,"commit_id":"2bd2d95ea8de8c8d97e33d9f6e575300257da6b8","original_commit_id":"2bd2d95ea8de8c8d97e33d9f6e575300257da6b8","user":{"login":"deepak","id":9192,"avatar_url":"https://avatars.githubusercontent.com/u/9192?v=3","gravatar_id":"","url":"https://api.github.com/users/deepak","html_url":"https://github.com/deepak","followers_url":"https://api.github.com/users/deepak/followers","following_url":"https://api.github.com/users/deepak/following{/other_user}","gists_url":"https://api.github.com/users/deepak/gists{/gist_id}","starred_url":"https://api.github.com/users/deepak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepak/subscriptions","organizations_url":"https://api.github.com/users/deepak/orgs","repos_url":"https://api.github.com/users/deepak/repos","events_url":"https://api.github.com/users/deepak/events{/privacy}","received_events_url":"https://api.github.com/users/deepak/received_events","type":"User","site_admin":false},"body":"why is this needed ?","created_at":"2016-07-28T10:23:01Z","updated_at":"2016-07-28T10:23:01Z","html_url":"https://github.com/code-mancers/leave-tracker/pull/25#discussion_r72598326","pull_request_url":"https://api.github.com/repos/code-mancers/leave-tracker/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/code-mancers/leave-tracker/pulls/comments/72598326"},"html":{"href":"https://github.com/code-mancers/leave-tracker/pull/25#discussion_r72598326"},"pull_request":{"href":"https://api.github.com/repos/code-mancers/leave-tracker/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/code-mancers/leave-tracker/pulls/25","id":78301203,"html_url":"https://github.com/code-mancers/leave-tracker/pull/25","diff_url":"https://github.com/code-mancers/leave-tracker/pull/25.diff","patch_url":"https://github.com/code-mancers/leave-tracker/pull/25.patch","issue_url":"https://api.github.com/repos/code-mancers/leave-tracker/issues/25","number":25,"state":"open","locked":false,"title":"[Card#23]-Admin dashboard-Dependency on display_leaves_on_dashboard branch","user":{"login":"HarshwardhanSingh","id":6086557,"avatar_url":"https://avatars.githubusercontent.com/u/6086557?v=3","gravatar_id":"","url":"https://api.github.com/users/HarshwardhanSingh","html_url":"https://github.com/HarshwardhanSingh","followers_url":"https://api.github.com/users/HarshwardhanSingh/followers","following_url":"https://api.github.com/users/HarshwardhanSingh/following{/other_user}","gists_url":"https://api.github.com/users/HarshwardhanSingh/gists{/gist_id}","starred_url":"https://api.github.com/users/HarshwardhanSingh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HarshwardhanSingh/subscriptions","organizations_url":"https://api.github.com/users/HarshwardhanSingh/orgs","repos_url":"https://api.github.com/users/HarshwardhanSingh/repos","events_url":"https://api.github.com/users/HarshwardhanSingh/events{/privacy}","received_events_url":"https://api.github.com/users/HarshwardhanSingh/received_events","type":"User","site_admin":false},"body":"Trello card at https://trello.com/c/YvH7gDnL & https://trello.com/c/kmTj8z3p\r\n\r\nBranched out from **master**\r\n\r\nDependent on **display_leaves_on_dashboard** branch","created_at":"2016-07-21T11:39:53Z","updated_at":"2016-07-28T10:23:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"304529bb1feb9d7011b0b5b2d813fee13bfb48e7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/code-mancers/leave-tracker/pulls/25/commits","review_comments_url":"https://api.github.com/repos/code-mancers/leave-tracker/pulls/25/comments","review_comment_url":"https://api.github.com/repos/code-mancers/leave-tracker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/code-mancers/leave-tracker/issues/25/comments","statuses_url":"https://api.github.com/repos/code-mancers/leave-tracker/statuses/2bd2d95ea8de8c8d97e33d9f6e575300257da6b8","head":{"label":"code-mancers:admin_dashboard","ref":"admin_dashboard","sha":"2bd2d95ea8de8c8d97e33d9f6e575300257da6b8","user":{"login":"code-mancers","id":1137275,"avatar_url":"https://avatars.githubusercontent.com/u/1137275?v=3","gravatar_id":"","url":"https://api.github.com/users/code-mancers","html_url":"https://github.com/code-mancers","followers_url":"https://api.github.com/users/code-mancers/followers","following_url":"https://api.github.com/users/code-mancers/following{/other_user}","gists_url":"https://api.github.com/users/code-mancers/gists{/gist_id}","starred_url":"https://api.github.com/users/code-mancers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-mancers/subscriptions","organizations_url":"https://api.github.com/users/code-mancers/orgs","repos_url":"https://api.github.com/users/code-mancers/repos","events_url":"https://api.github.com/users/code-mancers/events{/privacy}","received_events_url":"https://api.github.com/users/code-mancers/received_events","type":"Organization","site_admin":false},"repo":{"id":61518242,"name":"leave-tracker","full_name":"code-mancers/leave-tracker","owner":{"login":"code-mancers","id":1137275,"avatar_url":"https://avatars.githubusercontent.com/u/1137275?v=3","gravatar_id":"","url":"https://api.github.com/users/code-mancers","html_url":"https://github.com/code-mancers","followers_url":"https://api.github.com/users/code-mancers/followers","following_url":"https://api.github.com/users/code-mancers/following{/other_user}","gists_url":"https://api.github.com/users/code-mancers/gists{/gist_id}","starred_url":"https://api.github.com/users/code-mancers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-mancers/subscriptions","organizations_url":"https://api.github.com/users/code-mancers/orgs","repos_url":"https://api.github.com/users/code-mancers/repos","events_url":"https://api.github.com/users/code-mancers/events{/privacy}","received_events_url":"https://api.github.com/users/code-mancers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-mancers/leave-tracker","description":"","fork":false,"url":"https://api.github.com/repos/code-mancers/leave-tracker","forks_url":"https://api.github.com/repos/code-mancers/leave-tracker/forks","keys_url":"https://api.github.com/repos/code-mancers/leave-tracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-mancers/leave-tracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-mancers/leave-tracker/teams","hooks_url":"https://api.github.com/repos/code-mancers/leave-tracker/hooks","issue_events_url":"https://api.github.com/repos/code-mancers/leave-tracker/issues/events{/number}","events_url":"https://api.github.com/repos/code-mancers/leave-tracker/events","assignees_url":"https://api.github.com/repos/code-mancers/leave-tracker/assignees{/user}","branches_url":"https://api.github.com/repos/code-mancers/leave-tracker/branches{/branch}","tags_url":"https://api.github.com/repos/code-mancers/leave-tracker/tags","blobs_url":"https://api.github.com/repos/code-mancers/leave-tracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-mancers/leave-tracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-mancers/leave-tracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-mancers/leave-tracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-mancers/leave-tracker/statuses/{sha}","languages_url":"https://api.github.com/repos/code-mancers/leave-tracker/languages","stargazers_url":"https://api.github.com/repos/code-mancers/leave-tracker/stargazers","contributors_url":"https://api.github.com/repos/code-mancers/leave-tracker/contributors","subscribers_url":"https://api.github.com/repos/code-mancers/leave-tracker/subscribers","subscription_url":"https://api.github.com/repos/code-mancers/leave-tracker/subscription","commits_url":"https://api.github.com/repos/code-mancers/leave-tracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-mancers/leave-tracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-mancers/leave-tracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-mancers/leave-tracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-mancers/leave-tracker/contents/{+path}","compare_url":"https://api.github.com/repos/code-mancers/leave-tracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-mancers/leave-tracker/merges","archive_url":"https://api.github.com/repos/code-mancers/leave-tracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-mancers/leave-tracker/downloads","issues_url":"https://api.github.com/repos/code-mancers/leave-tracker/issues{/number}","pulls_url":"https://api.github.com/repos/code-mancers/leave-tracker/pulls{/number}","milestones_url":"https://api.github.com/repos/code-mancers/leave-tracker/milestones{/number}","notifications_url":"https://api.github.com/repos/code-mancers/leave-tracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-mancers/leave-tracker/labels{/name}","releases_url":"https://api.github.com/repos/code-mancers/leave-tracker/releases{/id}","deployments_url":"https://api.github.com/repos/code-mancers/leave-tracker/deployments","created_at":"2016-06-20T05:04:39Z","updated_at":"2016-06-20T07:02:28Z","pushed_at":"2016-07-28T10:22:23Z","git_url":"git://github.com/code-mancers/leave-tracker.git","ssh_url":"git@github.com:code-mancers/leave-tracker.git","clone_url":"https://github.com/code-mancers/leave-tracker.git","svn_url":"https://github.com/code-mancers/leave-tracker","homepage":null,"size":356,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":15,"forks":0,"open_issues":15,"watchers":0,"default_branch":"master"}},"base":{"label":"code-mancers:master","ref":"master","sha":"97173c04e1b1b91efdd42f0e5a4bac82a3c2ba31","user":{"login":"code-mancers","id":1137275,"avatar_url":"https://avatars.githubusercontent.com/u/1137275?v=3","gravatar_id":"","url":"https://api.github.com/users/code-mancers","html_url":"https://github.com/code-mancers","followers_url":"https://api.github.com/users/code-mancers/followers","following_url":"https://api.github.com/users/code-mancers/following{/other_user}","gists_url":"https://api.github.com/users/code-mancers/gists{/gist_id}","starred_url":"https://api.github.com/users/code-mancers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-mancers/subscriptions","organizations_url":"https://api.github.com/users/code-mancers/orgs","repos_url":"https://api.github.com/users/code-mancers/repos","events_url":"https://api.github.com/users/code-mancers/events{/privacy}","received_events_url":"https://api.github.com/users/code-mancers/received_events","type":"Organization","site_admin":false},"repo":{"id":61518242,"name":"leave-tracker","full_name":"code-mancers/leave-tracker","owner":{"login":"code-mancers","id":1137275,"avatar_url":"https://avatars.githubusercontent.com/u/1137275?v=3","gravatar_id":"","url":"https://api.github.com/users/code-mancers","html_url":"https://github.com/code-mancers","followers_url":"https://api.github.com/users/code-mancers/followers","following_url":"https://api.github.com/users/code-mancers/following{/other_user}","gists_url":"https://api.github.com/users/code-mancers/gists{/gist_id}","starred_url":"https://api.github.com/users/code-mancers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-mancers/subscriptions","organizations_url":"https://api.github.com/users/code-mancers/orgs","repos_url":"https://api.github.com/users/code-mancers/repos","events_url":"https://api.github.com/users/code-mancers/events{/privacy}","received_events_url":"https://api.github.com/users/code-mancers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-mancers/leave-tracker","description":"","fork":false,"url":"https://api.github.com/repos/code-mancers/leave-tracker","forks_url":"https://api.github.com/repos/code-mancers/leave-tracker/forks","keys_url":"https://api.github.com/repos/code-mancers/leave-tracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-mancers/leave-tracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-mancers/leave-tracker/teams","hooks_url":"https://api.github.com/repos/code-mancers/leave-tracker/hooks","issue_events_url":"https://api.github.com/repos/code-mancers/leave-tracker/issues/events{/number}","events_url":"https://api.github.com/repos/code-mancers/leave-tracker/events","assignees_url":"https://api.github.com/repos/code-mancers/leave-tracker/assignees{/user}","branches_url":"https://api.github.com/repos/code-mancers/leave-tracker/branches{/branch}","tags_url":"https://api.github.com/repos/code-mancers/leave-tracker/tags","blobs_url":"https://api.github.com/repos/code-mancers/leave-tracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-mancers/leave-tracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-mancers/leave-tracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-mancers/leave-tracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-mancers/leave-tracker/statuses/{sha}","languages_url":"https://api.github.com/repos/code-mancers/leave-tracker/languages","stargazers_url":"https://api.github.com/repos/code-mancers/leave-tracker/stargazers","contributors_url":"https://api.github.com/repos/code-mancers/leave-tracker/contributors","subscribers_url":"https://api.github.com/repos/code-mancers/leave-tracker/subscribers","subscription_url":"https://api.github.com/repos/code-mancers/leave-tracker/subscription","commits_url":"https://api.github.com/repos/code-mancers/leave-tracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-mancers/leave-tracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-mancers/leave-tracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-mancers/leave-tracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-mancers/leave-tracker/contents/{+path}","compare_url":"https://api.github.com/repos/code-mancers/leave-tracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-mancers/leave-tracker/merges","archive_url":"https://api.github.com/repos/code-mancers/leave-tracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-mancers/leave-tracker/downloads","issues_url":"https://api.github.com/repos/code-mancers/leave-tracker/issues{/number}","pulls_url":"https://api.github.com/repos/code-mancers/leave-tracker/pulls{/number}","milestones_url":"https://api.github.com/repos/code-mancers/leave-tracker/milestones{/number}","notifications_url":"https://api.github.com/repos/code-mancers/leave-tracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-mancers/leave-tracker/labels{/name}","releases_url":"https://api.github.com/repos/code-mancers/leave-tracker/releases{/id}","deployments_url":"https://api.github.com/repos/code-mancers/leave-tracker/deployments","created_at":"2016-06-20T05:04:39Z","updated_at":"2016-06-20T07:02:28Z","pushed_at":"2016-07-28T10:22:23Z","git_url":"git://github.com/code-mancers/leave-tracker.git","ssh_url":"git@github.com:code-mancers/leave-tracker.git","clone_url":"https://github.com/code-mancers/leave-tracker.git","svn_url":"https://github.com/code-mancers/leave-tracker","homepage":null,"size":356,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":15,"forks":0,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/code-mancers/leave-tracker/pulls/25"},"html":{"href":"https://github.com/code-mancers/leave-tracker/pull/25"},"issue":{"href":"https://api.github.com/repos/code-mancers/leave-tracker/issues/25"},"comments":{"href":"https://api.github.com/repos/code-mancers/leave-tracker/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/code-mancers/leave-tracker/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/code-mancers/leave-tracker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/code-mancers/leave-tracker/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/code-mancers/leave-tracker/statuses/2bd2d95ea8de8c8d97e33d9f6e575300257da6b8"}}}}
{"actor":{"display_login":"deepak"}}