{"action":"created","comment":{"url":"https://api.github.com/repos/raccoongang/xblock-video/pulls/comments/93448063","pull_request_review_id":13975658,"id":93448063,"diff_hunk":"@@ -407,5 +412,35 @@ function StudioEditableXBlock(runtime, element) {\n     $().ready(function(){\n         disableOption();\n     });\n+\n+    var parseRelativeTime = function (value) {\n+        // This function ensure you have two-digits\n+        // By default max value of RelativeTime field on Backend is 23:59:59,\n+        // that is 86399 seconds.\n+        var maxTimeInSeconds = 86399;\n+        var pad = function (number) {\n+                return (number < 10) ? \"0\" + number : number;","path":"video_xblock/static/js/studio_edit.js","position":30,"original_position":30,"commit_id":"d622b81580c432251a9b08cc3eb87c3d0d6c923b","original_commit_id":"d622b81580c432251a9b08cc3eb87c3d0d6c923b","user":{"login":"xahgmah","id":1928972,"avatar_url":"https://avatars.githubusercontent.com/u/1928972?v=3","gravatar_id":"","url":"https://api.github.com/users/xahgmah","html_url":"https://github.com/xahgmah","followers_url":"https://api.github.com/users/xahgmah/followers","following_url":"https://api.github.com/users/xahgmah/following{/other_user}","gists_url":"https://api.github.com/users/xahgmah/gists{/gist_id}","starred_url":"https://api.github.com/users/xahgmah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xahgmah/subscriptions","organizations_url":"https://api.github.com/users/xahgmah/orgs","repos_url":"https://api.github.com/users/xahgmah/repos","events_url":"https://api.github.com/users/xahgmah/events{/privacy}","received_events_url":"https://api.github.com/users/xahgmah/received_events","type":"User","site_admin":false},"body":"I've just wanted to return 2 characters mandatory. Converting number > 9 to string is an extra action","created_at":"2016-12-21T14:36:12Z","updated_at":"2016-12-21T14:36:12Z","html_url":"https://github.com/raccoongang/xblock-video/pull/32#discussion_r93448063","pull_request_url":"https://api.github.com/repos/raccoongang/xblock-video/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/raccoongang/xblock-video/pulls/comments/93448063"},"html":{"href":"https://github.com/raccoongang/xblock-video/pull/32#discussion_r93448063"},"pull_request":{"href":"https://api.github.com/repos/raccoongang/xblock-video/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/raccoongang/xblock-video/pulls/32","id":98907909,"html_url":"https://github.com/raccoongang/xblock-video/pull/32","diff_url":"https://github.com/raccoongang/xblock-video/pull/32.diff","patch_url":"https://github.com/raccoongang/xblock-video/pull/32.patch","issue_url":"https://api.github.com/repos/raccoongang/xblock-video/issues/32","number":32,"state":"open","locked":false,"title":"Feature/bugfix offset","user":{"login":"xahgmah","id":1928972,"avatar_url":"https://avatars.githubusercontent.com/u/1928972?v=3","gravatar_id":"","url":"https://api.github.com/users/xahgmah","html_url":"https://github.com/xahgmah","followers_url":"https://api.github.com/users/xahgmah/followers","following_url":"https://api.github.com/users/xahgmah/following{/other_user}","gists_url":"https://api.github.com/users/xahgmah/gists{/gist_id}","starred_url":"https://api.github.com/users/xahgmah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xahgmah/subscriptions","organizations_url":"https://api.github.com/users/xahgmah/orgs","repos_url":"https://api.github.com/users/xahgmah/repos","events_url":"https://api.github.com/users/xahgmah/events{/privacy}","received_events_url":"https://api.github.com/users/xahgmah/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-21T10:31:28Z","updated_at":"2016-12-21T14:36:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5cf707318a6dbed459a8a0d153eca59e205e56f","assignee":{"login":"z4y4ts","id":453047,"avatar_url":"https://avatars.githubusercontent.com/u/453047?v=3","gravatar_id":"","url":"https://api.github.com/users/z4y4ts","html_url":"https://github.com/z4y4ts","followers_url":"https://api.github.com/users/z4y4ts/followers","following_url":"https://api.github.com/users/z4y4ts/following{/other_user}","gists_url":"https://api.github.com/users/z4y4ts/gists{/gist_id}","starred_url":"https://api.github.com/users/z4y4ts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z4y4ts/subscriptions","organizations_url":"https://api.github.com/users/z4y4ts/orgs","repos_url":"https://api.github.com/users/z4y4ts/repos","events_url":"https://api.github.com/users/z4y4ts/events{/privacy}","received_events_url":"https://api.github.com/users/z4y4ts/received_events","type":"User","site_admin":false},"assignees":[{"login":"z4y4ts","id":453047,"avatar_url":"https://avatars.githubusercontent.com/u/453047?v=3","gravatar_id":"","url":"https://api.github.com/users/z4y4ts","html_url":"https://github.com/z4y4ts","followers_url":"https://api.github.com/users/z4y4ts/followers","following_url":"https://api.github.com/users/z4y4ts/following{/other_user}","gists_url":"https://api.github.com/users/z4y4ts/gists{/gist_id}","starred_url":"https://api.github.com/users/z4y4ts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z4y4ts/subscriptions","organizations_url":"https://api.github.com/users/z4y4ts/orgs","repos_url":"https://api.github.com/users/z4y4ts/repos","events_url":"https://api.github.com/users/z4y4ts/events{/privacy}","received_events_url":"https://api.github.com/users/z4y4ts/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/raccoongang/xblock-video/pulls/32/commits","review_comments_url":"https://api.github.com/repos/raccoongang/xblock-video/pulls/32/comments","review_comment_url":"https://api.github.com/repos/raccoongang/xblock-video/pulls/comments{/number}","comments_url":"https://api.github.com/repos/raccoongang/xblock-video/issues/32/comments","statuses_url":"https://api.github.com/repos/raccoongang/xblock-video/statuses/d622b81580c432251a9b08cc3eb87c3d0d6c923b","head":{"label":"raccoongang:feature/bugfix_offset","ref":"feature/bugfix_offset","sha":"d622b81580c432251a9b08cc3eb87c3d0d6c923b","user":{"login":"raccoongang","id":11388447,"avatar_url":"https://avatars.githubusercontent.com/u/11388447?v=3","gravatar_id":"","url":"https://api.github.com/users/raccoongang","html_url":"https://github.com/raccoongang","followers_url":"https://api.github.com/users/raccoongang/followers","following_url":"https://api.github.com/users/raccoongang/following{/other_user}","gists_url":"https://api.github.com/users/raccoongang/gists{/gist_id}","starred_url":"https://api.github.com/users/raccoongang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raccoongang/subscriptions","organizations_url":"https://api.github.com/users/raccoongang/orgs","repos_url":"https://api.github.com/users/raccoongang/repos","events_url":"https://api.github.com/users/raccoongang/events{/privacy}","received_events_url":"https://api.github.com/users/raccoongang/received_events","type":"Organization","site_admin":false},"repo":{"id":72450225,"name":"xblock-video","full_name":"raccoongang/xblock-video","owner":{"login":"raccoongang","id":11388447,"avatar_url":"https://avatars.githubusercontent.com/u/11388447?v=3","gravatar_id":"","url":"https://api.github.com/users/raccoongang","html_url":"https://github.com/raccoongang","followers_url":"https://api.github.com/users/raccoongang/followers","following_url":"https://api.github.com/users/raccoongang/following{/other_user}","gists_url":"https://api.github.com/users/raccoongang/gists{/gist_id}","starred_url":"https://api.github.com/users/raccoongang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raccoongang/subscriptions","organizations_url":"https://api.github.com/users/raccoongang/orgs","repos_url":"https://api.github.com/users/raccoongang/repos","events_url":"https://api.github.com/users/raccoongang/events{/privacy}","received_events_url":"https://api.github.com/users/raccoongang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/raccoongang/xblock-video","description":"Universal Video XBlock with pluggable backend for many video hosting providers","fork":true,"url":"https://api.github.com/repos/raccoongang/xblock-video","forks_url":"https://api.github.com/repos/raccoongang/xblock-video/forks","keys_url":"https://api.github.com/repos/raccoongang/xblock-video/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raccoongang/xblock-video/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raccoongang/xblock-video/teams","hooks_url":"https://api.github.com/repos/raccoongang/xblock-video/hooks","issue_events_url":"https://api.github.com/repos/raccoongang/xblock-video/issues/events{/number}","events_url":"https://api.github.com/repos/raccoongang/xblock-video/events","assignees_url":"https://api.github.com/repos/raccoongang/xblock-video/assignees{/user}","branches_url":"https://api.github.com/repos/raccoongang/xblock-video/branches{/branch}","tags_url":"https://api.github.com/repos/raccoongang/xblock-video/tags","blobs_url":"https://api.github.com/repos/raccoongang/xblock-video/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raccoongang/xblock-video/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raccoongang/xblock-video/git/refs{/sha}","trees_url":"https://api.github.com/repos/raccoongang/xblock-video/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raccoongang/xblock-video/statuses/{sha}","languages_url":"https://api.github.com/repos/raccoongang/xblock-video/languages","stargazers_url":"https://api.github.com/repos/raccoongang/xblock-video/stargazers","contributors_url":"https://api.github.com/repos/raccoongang/xblock-video/contributors","subscribers_url":"https://api.github.com/repos/raccoongang/xblock-video/subscribers","subscription_url":"https://api.github.com/repos/raccoongang/xblock-video/subscription","commits_url":"https://api.github.com/repos/raccoongang/xblock-video/commits{/sha}","git_commits_url":"https://api.github.com/repos/raccoongang/xblock-video/git/commits{/sha}","comments_url":"https://api.github.com/repos/raccoongang/xblock-video/comments{/number}","issue_comment_url":"https://api.github.com/repos/raccoongang/xblock-video/issues/comments{/number}","contents_url":"https://api.github.com/repos/raccoongang/xblock-video/contents/{+path}","compare_url":"https://api.github.com/repos/raccoongang/xblock-video/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raccoongang/xblock-video/merges","archive_url":"https://api.github.com/repos/raccoongang/xblock-video/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raccoongang/xblock-video/downloads","issues_url":"https://api.github.com/repos/raccoongang/xblock-video/issues{/number}","pulls_url":"https://api.github.com/repos/raccoongang/xblock-video/pulls{/number}","milestones_url":"https://api.github.com/repos/raccoongang/xblock-video/milestones{/number}","notifications_url":"https://api.github.com/repos/raccoongang/xblock-video/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raccoongang/xblock-video/labels{/name}","releases_url":"https://api.github.com/repos/raccoongang/xblock-video/releases{/id}","deployments_url":"https://api.github.com/repos/raccoongang/xblock-video/deployments","created_at":"2016-10-31T15:30:25Z","updated_at":"2016-11-30T17:10:35Z","pushed_at":"2016-12-21T10:58:38Z","git_url":"git://github.com/raccoongang/xblock-video.git","ssh_url":"git@github.com:raccoongang/xblock-video.git","clone_url":"https://github.com/raccoongang/xblock-video.git","svn_url":"https://github.com/raccoongang/xblock-video","homepage":null,"size":3633,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"raccoongang:dev","ref":"dev","sha":"364acfbbe23ab8a27f15cb1a1cc02994bb2fc934","user":{"login":"raccoongang","id":11388447,"avatar_url":"https://avatars.githubusercontent.com/u/11388447?v=3","gravatar_id":"","url":"https://api.github.com/users/raccoongang","html_url":"https://github.com/raccoongang","followers_url":"https://api.github.com/users/raccoongang/followers","following_url":"https://api.github.com/users/raccoongang/following{/other_user}","gists_url":"https://api.github.com/users/raccoongang/gists{/gist_id}","starred_url":"https://api.github.com/users/raccoongang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raccoongang/subscriptions","organizations_url":"https://api.github.com/users/raccoongang/orgs","repos_url":"https://api.github.com/users/raccoongang/repos","events_url":"https://api.github.com/users/raccoongang/events{/privacy}","received_events_url":"https://api.github.com/users/raccoongang/received_events","type":"Organization","site_admin":false},"repo":{"id":72450225,"name":"xblock-video","full_name":"raccoongang/xblock-video","owner":{"login":"raccoongang","id":11388447,"avatar_url":"https://avatars.githubusercontent.com/u/11388447?v=3","gravatar_id":"","url":"https://api.github.com/users/raccoongang","html_url":"https://github.com/raccoongang","followers_url":"https://api.github.com/users/raccoongang/followers","following_url":"https://api.github.com/users/raccoongang/following{/other_user}","gists_url":"https://api.github.com/users/raccoongang/gists{/gist_id}","starred_url":"https://api.github.com/users/raccoongang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raccoongang/subscriptions","organizations_url":"https://api.github.com/users/raccoongang/orgs","repos_url":"https://api.github.com/users/raccoongang/repos","events_url":"https://api.github.com/users/raccoongang/events{/privacy}","received_events_url":"https://api.github.com/users/raccoongang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/raccoongang/xblock-video","description":"Universal Video XBlock with pluggable backend for many video hosting providers","fork":true,"url":"https://api.github.com/repos/raccoongang/xblock-video","forks_url":"https://api.github.com/repos/raccoongang/xblock-video/forks","keys_url":"https://api.github.com/repos/raccoongang/xblock-video/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raccoongang/xblock-video/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raccoongang/xblock-video/teams","hooks_url":"https://api.github.com/repos/raccoongang/xblock-video/hooks","issue_events_url":"https://api.github.com/repos/raccoongang/xblock-video/issues/events{/number}","events_url":"https://api.github.com/repos/raccoongang/xblock-video/events","assignees_url":"https://api.github.com/repos/raccoongang/xblock-video/assignees{/user}","branches_url":"https://api.github.com/repos/raccoongang/xblock-video/branches{/branch}","tags_url":"https://api.github.com/repos/raccoongang/xblock-video/tags","blobs_url":"https://api.github.com/repos/raccoongang/xblock-video/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raccoongang/xblock-video/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raccoongang/xblock-video/git/refs{/sha}","trees_url":"https://api.github.com/repos/raccoongang/xblock-video/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raccoongang/xblock-video/statuses/{sha}","languages_url":"https://api.github.com/repos/raccoongang/xblock-video/languages","stargazers_url":"https://api.github.com/repos/raccoongang/xblock-video/stargazers","contributors_url":"https://api.github.com/repos/raccoongang/xblock-video/contributors","subscribers_url":"https://api.github.com/repos/raccoongang/xblock-video/subscribers","subscription_url":"https://api.github.com/repos/raccoongang/xblock-video/subscription","commits_url":"https://api.github.com/repos/raccoongang/xblock-video/commits{/sha}","git_commits_url":"https://api.github.com/repos/raccoongang/xblock-video/git/commits{/sha}","comments_url":"https://api.github.com/repos/raccoongang/xblock-video/comments{/number}","issue_comment_url":"https://api.github.com/repos/raccoongang/xblock-video/issues/comments{/number}","contents_url":"https://api.github.com/repos/raccoongang/xblock-video/contents/{+path}","compare_url":"https://api.github.com/repos/raccoongang/xblock-video/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raccoongang/xblock-video/merges","archive_url":"https://api.github.com/repos/raccoongang/xblock-video/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raccoongang/xblock-video/downloads","issues_url":"https://api.github.com/repos/raccoongang/xblock-video/issues{/number}","pulls_url":"https://api.github.com/repos/raccoongang/xblock-video/pulls{/number}","milestones_url":"https://api.github.com/repos/raccoongang/xblock-video/milestones{/number}","notifications_url":"https://api.github.com/repos/raccoongang/xblock-video/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raccoongang/xblock-video/labels{/name}","releases_url":"https://api.github.com/repos/raccoongang/xblock-video/releases{/id}","deployments_url":"https://api.github.com/repos/raccoongang/xblock-video/deployments","created_at":"2016-10-31T15:30:25Z","updated_at":"2016-11-30T17:10:35Z","pushed_at":"2016-12-21T10:58:38Z","git_url":"git://github.com/raccoongang/xblock-video.git","ssh_url":"git@github.com:raccoongang/xblock-video.git","clone_url":"https://github.com/raccoongang/xblock-video.git","svn_url":"https://github.com/raccoongang/xblock-video","homepage":null,"size":3633,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/raccoongang/xblock-video/pulls/32"},"html":{"href":"https://github.com/raccoongang/xblock-video/pull/32"},"issue":{"href":"https://api.github.com/repos/raccoongang/xblock-video/issues/32"},"comments":{"href":"https://api.github.com/repos/raccoongang/xblock-video/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/raccoongang/xblock-video/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/raccoongang/xblock-video/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/raccoongang/xblock-video/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/raccoongang/xblock-video/statuses/d622b81580c432251a9b08cc3eb87c3d0d6c923b"}}}}
{"actor":{"display_login":"xahgmah"}}