{"action":"created","comment":{"url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/pulls/comments/47604046","id":47604046,"diff_hunk":"@@ -72,7 +72,26 @@\n    * @return {boolean}\n    */\n   function resizeFormIsValid() {\n-    return true;\n+    var resizeX = formElement['resize-x'];\n+    var resizeY = formElement['resize-y'];\n+    var resizeSize =  formElement['resize-size'];\n+\n+    if ( (resizeX.value + resizeSize.value) <= currentResizer._image.naturalWidth\n+    || (resizeY.value + resizeSize.value) <= currentResizer._image.naturalHeight ) {","path":"js/upload.js","position":10,"original_position":10,"commit_id":"ef0612b3c809afa63808b1d7f27a245301755bee","original_commit_id":"ef0612b3c809afa63808b1d7f27a245301755bee","user":{"login":"lusever","id":185282,"avatar_url":"https://avatars.githubusercontent.com/u/185282?v=3","gravatar_id":"","url":"https://api.github.com/users/lusever","html_url":"https://github.com/lusever","followers_url":"https://api.github.com/users/lusever/followers","following_url":"https://api.github.com/users/lusever/following{/other_user}","gists_url":"https://api.github.com/users/lusever/gists{/gist_id}","starred_url":"https://api.github.com/users/lusever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lusever/subscriptions","organizations_url":"https://api.github.com/users/lusever/orgs","repos_url":"https://api.github.com/users/lusever/repos","events_url":"https://api.github.com/users/lusever/events{/privacy}","received_events_url":"https://api.github.com/users/lusever/received_events","type":"User","site_admin":false},"body":"Сейчас верент true когда одно из сторон правильно кадрируется. По условиям задачи надо чтобы правильно кадрировались обе стороны.\r\nИ проверку на отрицательные значения тоже можно добавить.","created_at":"2015-12-15T07:18:37Z","updated_at":"2015-12-15T07:18:37Z","html_url":"https://github.com/js-htmlacademy/3352-keksogram/pull/4#discussion_r47604046","pull_request_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/pulls/comments/47604046"},"html":{"href":"https://github.com/js-htmlacademy/3352-keksogram/pull/4#discussion_r47604046"},"pull_request":{"href":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/pulls/4","id":52917325,"html_url":"https://github.com/js-htmlacademy/3352-keksogram/pull/4","diff_url":"https://github.com/js-htmlacademy/3352-keksogram/pull/4.diff","patch_url":"https://github.com/js-htmlacademy/3352-keksogram/pull/4.patch","issue_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/issues/4","number":4,"state":"open","locked":false,"title":"Валидация","user":{"login":"astunov","id":6756217,"avatar_url":"https://avatars.githubusercontent.com/u/6756217?v=3","gravatar_id":"","url":"https://api.github.com/users/astunov","html_url":"https://github.com/astunov","followers_url":"https://api.github.com/users/astunov/followers","following_url":"https://api.github.com/users/astunov/following{/other_user}","gists_url":"https://api.github.com/users/astunov/gists{/gist_id}","starred_url":"https://api.github.com/users/astunov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astunov/subscriptions","organizations_url":"https://api.github.com/users/astunov/orgs","repos_url":"https://api.github.com/users/astunov/repos","events_url":"https://api.github.com/users/astunov/events{/privacy}","received_events_url":"https://api.github.com/users/astunov/received_events","type":"User","site_admin":false},"body":"Добавил валидацию. \n\n--\n:boom: https://js-htmlacademy.github.io/3352-keksogram/4/","created_at":"2015-12-07T23:30:29Z","updated_at":"2015-12-15T07:18:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5d2e6689e3412145c0de93fcf5fccfbe0825eb43","assignee":{"login":"lusever","id":185282,"avatar_url":"https://avatars.githubusercontent.com/u/185282?v=3","gravatar_id":"","url":"https://api.github.com/users/lusever","html_url":"https://github.com/lusever","followers_url":"https://api.github.com/users/lusever/followers","following_url":"https://api.github.com/users/lusever/following{/other_user}","gists_url":"https://api.github.com/users/lusever/gists{/gist_id}","starred_url":"https://api.github.com/users/lusever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lusever/subscriptions","organizations_url":"https://api.github.com/users/lusever/orgs","repos_url":"https://api.github.com/users/lusever/repos","events_url":"https://api.github.com/users/lusever/events{/privacy}","received_events_url":"https://api.github.com/users/lusever/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/pulls/4/commits","review_comments_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/pulls/4/comments","review_comment_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/pulls/comments{/number}","comments_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/issues/4/comments","statuses_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/statuses/ef0612b3c809afa63808b1d7f27a245301755bee","head":{"label":"astunov:module3-task1","ref":"module3-task1","sha":"ef0612b3c809afa63808b1d7f27a245301755bee","user":{"login":"astunov","id":6756217,"avatar_url":"https://avatars.githubusercontent.com/u/6756217?v=3","gravatar_id":"","url":"https://api.github.com/users/astunov","html_url":"https://github.com/astunov","followers_url":"https://api.github.com/users/astunov/followers","following_url":"https://api.github.com/users/astunov/following{/other_user}","gists_url":"https://api.github.com/users/astunov/gists{/gist_id}","starred_url":"https://api.github.com/users/astunov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astunov/subscriptions","organizations_url":"https://api.github.com/users/astunov/orgs","repos_url":"https://api.github.com/users/astunov/repos","events_url":"https://api.github.com/users/astunov/events{/privacy}","received_events_url":"https://api.github.com/users/astunov/received_events","type":"User","site_admin":false},"repo":{"id":46615660,"name":"3352-keksogram","full_name":"astunov/3352-keksogram","owner":{"login":"astunov","id":6756217,"avatar_url":"https://avatars.githubusercontent.com/u/6756217?v=3","gravatar_id":"","url":"https://api.github.com/users/astunov","html_url":"https://github.com/astunov","followers_url":"https://api.github.com/users/astunov/followers","following_url":"https://api.github.com/users/astunov/following{/other_user}","gists_url":"https://api.github.com/users/astunov/gists{/gist_id}","starred_url":"https://api.github.com/users/astunov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astunov/subscriptions","organizations_url":"https://api.github.com/users/astunov/orgs","repos_url":"https://api.github.com/users/astunov/repos","events_url":"https://api.github.com/users/astunov/events{/privacy}","received_events_url":"https://api.github.com/users/astunov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/astunov/3352-keksogram","description":"Кирилл Хвастунов","fork":true,"url":"https://api.github.com/repos/astunov/3352-keksogram","forks_url":"https://api.github.com/repos/astunov/3352-keksogram/forks","keys_url":"https://api.github.com/repos/astunov/3352-keksogram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/astunov/3352-keksogram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/astunov/3352-keksogram/teams","hooks_url":"https://api.github.com/repos/astunov/3352-keksogram/hooks","issue_events_url":"https://api.github.com/repos/astunov/3352-keksogram/issues/events{/number}","events_url":"https://api.github.com/repos/astunov/3352-keksogram/events","assignees_url":"https://api.github.com/repos/astunov/3352-keksogram/assignees{/user}","branches_url":"https://api.github.com/repos/astunov/3352-keksogram/branches{/branch}","tags_url":"https://api.github.com/repos/astunov/3352-keksogram/tags","blobs_url":"https://api.github.com/repos/astunov/3352-keksogram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/astunov/3352-keksogram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/astunov/3352-keksogram/git/refs{/sha}","trees_url":"https://api.github.com/repos/astunov/3352-keksogram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/astunov/3352-keksogram/statuses/{sha}","languages_url":"https://api.github.com/repos/astunov/3352-keksogram/languages","stargazers_url":"https://api.github.com/repos/astunov/3352-keksogram/stargazers","contributors_url":"https://api.github.com/repos/astunov/3352-keksogram/contributors","subscribers_url":"https://api.github.com/repos/astunov/3352-keksogram/subscribers","subscription_url":"https://api.github.com/repos/astunov/3352-keksogram/subscription","commits_url":"https://api.github.com/repos/astunov/3352-keksogram/commits{/sha}","git_commits_url":"https://api.github.com/repos/astunov/3352-keksogram/git/commits{/sha}","comments_url":"https://api.github.com/repos/astunov/3352-keksogram/comments{/number}","issue_comment_url":"https://api.github.com/repos/astunov/3352-keksogram/issues/comments{/number}","contents_url":"https://api.github.com/repos/astunov/3352-keksogram/contents/{+path}","compare_url":"https://api.github.com/repos/astunov/3352-keksogram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/astunov/3352-keksogram/merges","archive_url":"https://api.github.com/repos/astunov/3352-keksogram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/astunov/3352-keksogram/downloads","issues_url":"https://api.github.com/repos/astunov/3352-keksogram/issues{/number}","pulls_url":"https://api.github.com/repos/astunov/3352-keksogram/pulls{/number}","milestones_url":"https://api.github.com/repos/astunov/3352-keksogram/milestones{/number}","notifications_url":"https://api.github.com/repos/astunov/3352-keksogram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/astunov/3352-keksogram/labels{/name}","releases_url":"https://api.github.com/repos/astunov/3352-keksogram/releases{/id}","created_at":"2015-11-21T13:07:39Z","updated_at":"2015-11-21T13:07:40Z","pushed_at":"2015-12-14T21:08:35Z","git_url":"git://github.com/astunov/3352-keksogram.git","ssh_url":"git@github.com:astunov/3352-keksogram.git","clone_url":"https://github.com/astunov/3352-keksogram.git","svn_url":"https://github.com/astunov/3352-keksogram","homepage":null,"size":3788,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"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":"js-htmlacademy:master","ref":"master","sha":"81d1cf65ca00c810b1c0580242336acae8868988","user":{"login":"js-htmlacademy","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/js-htmlacademy","html_url":"https://github.com/js-htmlacademy","followers_url":"https://api.github.com/users/js-htmlacademy/followers","following_url":"https://api.github.com/users/js-htmlacademy/following{/other_user}","gists_url":"https://api.github.com/users/js-htmlacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/js-htmlacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/js-htmlacademy/subscriptions","organizations_url":"https://api.github.com/users/js-htmlacademy/orgs","repos_url":"https://api.github.com/users/js-htmlacademy/repos","events_url":"https://api.github.com/users/js-htmlacademy/events{/privacy}","received_events_url":"https://api.github.com/users/js-htmlacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":46615639,"name":"3352-keksogram","full_name":"js-htmlacademy/3352-keksogram","owner":{"login":"js-htmlacademy","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/js-htmlacademy","html_url":"https://github.com/js-htmlacademy","followers_url":"https://api.github.com/users/js-htmlacademy/followers","following_url":"https://api.github.com/users/js-htmlacademy/following{/other_user}","gists_url":"https://api.github.com/users/js-htmlacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/js-htmlacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/js-htmlacademy/subscriptions","organizations_url":"https://api.github.com/users/js-htmlacademy/orgs","repos_url":"https://api.github.com/users/js-htmlacademy/repos","events_url":"https://api.github.com/users/js-htmlacademy/events{/privacy}","received_events_url":"https://api.github.com/users/js-htmlacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/js-htmlacademy/3352-keksogram","description":"Кирилл Хвастунов","fork":false,"url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram","forks_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/forks","keys_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/teams","hooks_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/hooks","issue_events_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/issues/events{/number}","events_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/events","assignees_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/assignees{/user}","branches_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/branches{/branch}","tags_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/tags","blobs_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/git/refs{/sha}","trees_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/statuses/{sha}","languages_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/languages","stargazers_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/stargazers","contributors_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/contributors","subscribers_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/subscribers","subscription_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/subscription","commits_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/commits{/sha}","git_commits_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/git/commits{/sha}","comments_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/comments{/number}","issue_comment_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/issues/comments{/number}","contents_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/contents/{+path}","compare_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/merges","archive_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/downloads","issues_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/issues{/number}","pulls_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/pulls{/number}","milestones_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/milestones{/number}","notifications_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/labels{/name}","releases_url":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/releases{/id}","created_at":"2015-11-21T13:07:00Z","updated_at":"2015-11-21T16:36:45Z","pushed_at":"2015-12-14T21:12:37Z","git_url":"git://github.com/js-htmlacademy/3352-keksogram.git","ssh_url":"git@github.com:js-htmlacademy/3352-keksogram.git","clone_url":"https://github.com/js-htmlacademy/3352-keksogram.git","svn_url":"https://github.com/js-htmlacademy/3352-keksogram","homepage":"https://github.com/astunov/3352-keksogram","size":3798,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/pulls/4"},"html":{"href":"https://github.com/js-htmlacademy/3352-keksogram/pull/4"},"issue":{"href":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/issues/4"},"comments":{"href":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/js-htmlacademy/3352-keksogram/statuses/ef0612b3c809afa63808b1d7f27a245301755bee"}}}}