{"action":"created","comment":{"url":"https://api.github.com/repos/DoSomething/dosomething/pulls/comments/24439102","id":24439102,"diff_hunk":"@@ -61,13 +62,11 @@ define(function(require) {\n         this.enableResponsive();\n       }\n \n-      if (Modernizr.filereader) {\n-        this.imageUploadInit();\n-      }\n+      Modernizr.filereader ? this.imageUploadInit() : ImageUploadFallback.init(this.$uploadButton, '.reportback__submissions');","path":"lib/themes/dosomething/paraneue_dosomething/js/reportback/Reportback.js","position":25,"original_position":25,"commit_id":"7f4f986bd4586f3a506a3e7d211cde0691597170","original_commit_id":"7f4f986bd4586f3a506a3e7d211cde0691597170","user":{"login":"DFurnes","id":583202,"avatar_url":"https://avatars.githubusercontent.com/u/583202?v=3","gravatar_id":"","url":"https://api.github.com/users/DFurnes","html_url":"https://github.com/DFurnes","followers_url":"https://api.github.com/users/DFurnes/followers","following_url":"https://api.github.com/users/DFurnes/following{/other_user}","gists_url":"https://api.github.com/users/DFurnes/gists{/gist_id}","starred_url":"https://api.github.com/users/DFurnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFurnes/subscriptions","organizations_url":"https://api.github.com/users/DFurnes/orgs","repos_url":"https://api.github.com/users/DFurnes/repos","events_url":"https://api.github.com/users/DFurnes/events{/privacy}","received_events_url":"https://api.github.com/users/DFurnes/received_events","type":"User","site_admin":false},"body":"I'd argue an `if`/`else` block would be a bit more readable here...","created_at":"2015-02-10T18:55:55Z","updated_at":"2015-02-10T18:55:55Z","html_url":"https://github.com/DoSomething/dosomething/pull/3927#discussion_r24439102","pull_request_url":"https://api.github.com/repos/DoSomething/dosomething/pulls/3927","_links":{"self":{"href":"https://api.github.com/repos/DoSomething/dosomething/pulls/comments/24439102"},"html":{"href":"https://github.com/DoSomething/dosomething/pull/3927#discussion_r24439102"},"pull_request":{"href":"https://api.github.com/repos/DoSomething/dosomething/pulls/3927"}}},"pull_request":{"url":"https://api.github.com/repos/DoSomething/dosomething/pulls/3927","id":29033769,"html_url":"https://github.com/DoSomething/dosomething/pull/3927","diff_url":"https://github.com/DoSomething/dosomething/pull/3927.diff","patch_url":"https://github.com/DoSomething/dosomething/pull/3927.patch","issue_url":"https://api.github.com/repos/DoSomething/dosomething/issues/3927","number":3927,"state":"open","locked":false,"title":"Reportback ie behavior","user":{"login":"weerd","id":105849,"avatar_url":"https://avatars.githubusercontent.com/u/105849?v=3","gravatar_id":"","url":"https://api.github.com/users/weerd","html_url":"https://github.com/weerd","followers_url":"https://api.github.com/users/weerd/followers","following_url":"https://api.github.com/users/weerd/following{/other_user}","gists_url":"https://api.github.com/users/weerd/gists{/gist_id}","starred_url":"https://api.github.com/users/weerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weerd/subscriptions","organizations_url":"https://api.github.com/users/weerd/orgs","repos_url":"https://api.github.com/users/weerd/repos","events_url":"https://api.github.com/users/weerd/events{/privacy}","received_events_url":"https://api.github.com/users/weerd/received_events","type":"User","site_admin":false},"body":"## Fixes #3699\r\n\r\nThis script provides a fallback interface for the file upload on the Reportback 2.0 when a browser does not support the File API.\r\n\r\nThe fallback interface will show a more streamlined interface (AFTER activating the input to add a photo) with the file name selected along with a link to *change photo* if the user would like to select a different image before submitting.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/105849/6134016/2904556e-b12c-11e4-9e4d-dc06cdfb8508.png)\r\n","created_at":"2015-02-10T18:53:41Z","updated_at":"2015-02-10T18:55:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f00e073c76eb098aa01b0ebf0de28022c25538e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DoSomething/dosomething/pulls/3927/commits","review_comments_url":"https://api.github.com/repos/DoSomething/dosomething/pulls/3927/comments","review_comment_url":"https://api.github.com/repos/DoSomething/dosomething/pulls/comments/{number}","comments_url":"https://api.github.com/repos/DoSomething/dosomething/issues/3927/comments","statuses_url":"https://api.github.com/repos/DoSomething/dosomething/statuses/7f4f986bd4586f3a506a3e7d211cde0691597170","head":{"label":"weerd:reportback-ie-behavior","ref":"reportback-ie-behavior","sha":"7f4f986bd4586f3a506a3e7d211cde0691597170","user":{"login":"weerd","id":105849,"avatar_url":"https://avatars.githubusercontent.com/u/105849?v=3","gravatar_id":"","url":"https://api.github.com/users/weerd","html_url":"https://github.com/weerd","followers_url":"https://api.github.com/users/weerd/followers","following_url":"https://api.github.com/users/weerd/following{/other_user}","gists_url":"https://api.github.com/users/weerd/gists{/gist_id}","starred_url":"https://api.github.com/users/weerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weerd/subscriptions","organizations_url":"https://api.github.com/users/weerd/orgs","repos_url":"https://api.github.com/users/weerd/repos","events_url":"https://api.github.com/users/weerd/events{/privacy}","received_events_url":"https://api.github.com/users/weerd/received_events","type":"User","site_admin":false},"repo":{"id":26650134,"name":"dosomething","full_name":"weerd/dosomething","owner":{"login":"weerd","id":105849,"avatar_url":"https://avatars.githubusercontent.com/u/105849?v=3","gravatar_id":"","url":"https://api.github.com/users/weerd","html_url":"https://github.com/weerd","followers_url":"https://api.github.com/users/weerd/followers","following_url":"https://api.github.com/users/weerd/following{/other_user}","gists_url":"https://api.github.com/users/weerd/gists{/gist_id}","starred_url":"https://api.github.com/users/weerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weerd/subscriptions","organizations_url":"https://api.github.com/users/weerd/orgs","repos_url":"https://api.github.com/users/weerd/repos","events_url":"https://api.github.com/users/weerd/events{/privacy}","received_events_url":"https://api.github.com/users/weerd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/weerd/dosomething","description":"A Drupal 7 distribution that powers the DoSomething.org web platform.","fork":true,"url":"https://api.github.com/repos/weerd/dosomething","forks_url":"https://api.github.com/repos/weerd/dosomething/forks","keys_url":"https://api.github.com/repos/weerd/dosomething/keys{/key_id}","collaborators_url":"https://api.github.com/repos/weerd/dosomething/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/weerd/dosomething/teams","hooks_url":"https://api.github.com/repos/weerd/dosomething/hooks","issue_events_url":"https://api.github.com/repos/weerd/dosomething/issues/events{/number}","events_url":"https://api.github.com/repos/weerd/dosomething/events","assignees_url":"https://api.github.com/repos/weerd/dosomething/assignees{/user}","branches_url":"https://api.github.com/repos/weerd/dosomething/branches{/branch}","tags_url":"https://api.github.com/repos/weerd/dosomething/tags","blobs_url":"https://api.github.com/repos/weerd/dosomething/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/weerd/dosomething/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/weerd/dosomething/git/refs{/sha}","trees_url":"https://api.github.com/repos/weerd/dosomething/git/trees{/sha}","statuses_url":"https://api.github.com/repos/weerd/dosomething/statuses/{sha}","languages_url":"https://api.github.com/repos/weerd/dosomething/languages","stargazers_url":"https://api.github.com/repos/weerd/dosomething/stargazers","contributors_url":"https://api.github.com/repos/weerd/dosomething/contributors","subscribers_url":"https://api.github.com/repos/weerd/dosomething/subscribers","subscription_url":"https://api.github.com/repos/weerd/dosomething/subscription","commits_url":"https://api.github.com/repos/weerd/dosomething/commits{/sha}","git_commits_url":"https://api.github.com/repos/weerd/dosomething/git/commits{/sha}","comments_url":"https://api.github.com/repos/weerd/dosomething/comments{/number}","issue_comment_url":"https://api.github.com/repos/weerd/dosomething/issues/comments/{number}","contents_url":"https://api.github.com/repos/weerd/dosomething/contents/{+path}","compare_url":"https://api.github.com/repos/weerd/dosomething/compare/{base}...{head}","merges_url":"https://api.github.com/repos/weerd/dosomething/merges","archive_url":"https://api.github.com/repos/weerd/dosomething/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/weerd/dosomething/downloads","issues_url":"https://api.github.com/repos/weerd/dosomething/issues{/number}","pulls_url":"https://api.github.com/repos/weerd/dosomething/pulls{/number}","milestones_url":"https://api.github.com/repos/weerd/dosomething/milestones{/number}","notifications_url":"https://api.github.com/repos/weerd/dosomething/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/weerd/dosomething/labels{/name}","releases_url":"https://api.github.com/repos/weerd/dosomething/releases{/id}","created_at":"2014-11-14T17:42:44Z","updated_at":"2015-02-03T16:41:09Z","pushed_at":"2015-02-10T18:48:56Z","git_url":"git://github.com/weerd/dosomething.git","ssh_url":"git@github.com:weerd/dosomething.git","clone_url":"https://github.com/weerd/dosomething.git","svn_url":"https://github.com/weerd/dosomething","homepage":"http://www.dosomething.org/","size":11651,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"dev"}},"base":{"label":"DoSomething:dev","ref":"dev","sha":"12116666a1e36b75522e7b5ee85a57eaa10876a3","user":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"repo":{"id":13592927,"name":"dosomething","full_name":"DoSomething/dosomething","owner":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DoSomething/dosomething","description":"A Drupal 7 distribution that powers the DoSomething.org web platform.","fork":false,"url":"https://api.github.com/repos/DoSomething/dosomething","forks_url":"https://api.github.com/repos/DoSomething/dosomething/forks","keys_url":"https://api.github.com/repos/DoSomething/dosomething/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoSomething/dosomething/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoSomething/dosomething/teams","hooks_url":"https://api.github.com/repos/DoSomething/dosomething/hooks","issue_events_url":"https://api.github.com/repos/DoSomething/dosomething/issues/events{/number}","events_url":"https://api.github.com/repos/DoSomething/dosomething/events","assignees_url":"https://api.github.com/repos/DoSomething/dosomething/assignees{/user}","branches_url":"https://api.github.com/repos/DoSomething/dosomething/branches{/branch}","tags_url":"https://api.github.com/repos/DoSomething/dosomething/tags","blobs_url":"https://api.github.com/repos/DoSomething/dosomething/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoSomething/dosomething/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoSomething/dosomething/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoSomething/dosomething/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoSomething/dosomething/statuses/{sha}","languages_url":"https://api.github.com/repos/DoSomething/dosomething/languages","stargazers_url":"https://api.github.com/repos/DoSomething/dosomething/stargazers","contributors_url":"https://api.github.com/repos/DoSomething/dosomething/contributors","subscribers_url":"https://api.github.com/repos/DoSomething/dosomething/subscribers","subscription_url":"https://api.github.com/repos/DoSomething/dosomething/subscription","commits_url":"https://api.github.com/repos/DoSomething/dosomething/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoSomething/dosomething/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoSomething/dosomething/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoSomething/dosomething/issues/comments/{number}","contents_url":"https://api.github.com/repos/DoSomething/dosomething/contents/{+path}","compare_url":"https://api.github.com/repos/DoSomething/dosomething/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoSomething/dosomething/merges","archive_url":"https://api.github.com/repos/DoSomething/dosomething/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoSomething/dosomething/downloads","issues_url":"https://api.github.com/repos/DoSomething/dosomething/issues{/number}","pulls_url":"https://api.github.com/repos/DoSomething/dosomething/pulls{/number}","milestones_url":"https://api.github.com/repos/DoSomething/dosomething/milestones{/number}","notifications_url":"https://api.github.com/repos/DoSomething/dosomething/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoSomething/dosomething/labels{/name}","releases_url":"https://api.github.com/repos/DoSomething/dosomething/releases{/id}","created_at":"2013-10-15T14:50:48Z","updated_at":"2015-02-10T15:55:18Z","pushed_at":"2015-02-10T18:08:08Z","git_url":"git://github.com/DoSomething/dosomething.git","ssh_url":"git@github.com:DoSomething/dosomething.git","clone_url":"https://github.com/DoSomething/dosomething.git","svn_url":"https://github.com/DoSomething/dosomething","homepage":"http://www.dosomething.org/","size":22415,"stargazers_count":20,"watchers_count":20,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":215,"forks":13,"open_issues":215,"watchers":20,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/DoSomething/dosomething/pulls/3927"},"html":{"href":"https://github.com/DoSomething/dosomething/pull/3927"},"issue":{"href":"https://api.github.com/repos/DoSomething/dosomething/issues/3927"},"comments":{"href":"https://api.github.com/repos/DoSomething/dosomething/issues/3927/comments"},"review_comments":{"href":"https://api.github.com/repos/DoSomething/dosomething/pulls/3927/comments"},"review_comment":{"href":"https://api.github.com/repos/DoSomething/dosomething/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/DoSomething/dosomething/pulls/3927/commits"},"statuses":{"href":"https://api.github.com/repos/DoSomething/dosomething/statuses/7f4f986bd4586f3a506a3e7d211cde0691597170"}}}}