{"action":"created","comment":{"url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/pulls/comments/28193769","id":28193769,"diff_hunk":"@@ -0,0 +1,87 @@\n+(function() {\r\n+\r\n+  var adultsCounter = document.querySelector('.adults');\r\n+  var childrenCounter = document.querySelector('.children');\r\n+  var daysCounter = document.querySelector('.days');\r\n+\r\n+  function removeLastTraveler(container) {\r\n+    container.removeChild(container.lastChild);\r\n+  }\r\n+\r\n+  function addTraveler(container, template, number) {\r\n+    var nameBlock = document.createElement(\"div\");\r\n+    nameBlock.innerHTML = Mustache.render(template, { \"number\": number });\r\n+    container.appendChild(nameBlock);\r\n+  }\r\n+\r\n+  function onKeyup() {\r\n+    this.value = this.value.replace(/\\D/g,'');\r","path":"feedback/js/form.js","position":18,"original_position":18,"commit_id":"7e17648376ce7cee061dcbabe4b9afa762ca20e5","original_commit_id":"7e17648376ce7cee061dcbabe4b9afa762ca20e5","user":{"login":"isqua","id":529247,"avatar_url":"https://avatars.githubusercontent.com/u/529247?v=3","gravatar_id":"","url":"https://api.github.com/users/isqua","html_url":"https://github.com/isqua","followers_url":"https://api.github.com/users/isqua/followers","following_url":"https://api.github.com/users/isqua/following{/other_user}","gists_url":"https://api.github.com/users/isqua/gists{/gist_id}","starred_url":"https://api.github.com/users/isqua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isqua/subscriptions","organizations_url":"https://api.github.com/users/isqua/orgs","repos_url":"https://api.github.com/users/isqua/repos","events_url":"https://api.github.com/users/isqua/events{/privacy}","received_events_url":"https://api.github.com/users/isqua/received_events","type":"User","site_admin":false},"body":"Когда вводишь цифры и делаешь +/−, всё клёво. А когда вводишь буквы, поле очищается целиком. Надо, чтобы а) удалялись только цифры и б) если значение стало пустым, удалить все строчки с ФИО.","created_at":"2015-04-11T09:39:39Z","updated_at":"2015-04-11T09:39:39Z","html_url":"https://github.com/up-htmlacademy/31877-Sedona/pull/4#discussion_r28193769","pull_request_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/pulls/comments/28193769"},"html":{"href":"https://github.com/up-htmlacademy/31877-Sedona/pull/4#discussion_r28193769"},"pull_request":{"href":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/pulls/4","id":32760473,"html_url":"https://github.com/up-htmlacademy/31877-Sedona/pull/4","diff_url":"https://github.com/up-htmlacademy/31877-Sedona/pull/4.diff","patch_url":"https://github.com/up-htmlacademy/31877-Sedona/pull/4.patch","issue_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/issues/4","number":4,"state":"open","locked":false,"title":"Прикладной JavaScript, часть 2.","user":{"login":"Anna-V","id":8693241,"avatar_url":"https://avatars.githubusercontent.com/u/8693241?v=3","gravatar_id":"","url":"https://api.github.com/users/Anna-V","html_url":"https://github.com/Anna-V","followers_url":"https://api.github.com/users/Anna-V/followers","following_url":"https://api.github.com/users/Anna-V/following{/other_user}","gists_url":"https://api.github.com/users/Anna-V/gists{/gist_id}","starred_url":"https://api.github.com/users/Anna-V/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anna-V/subscriptions","organizations_url":"https://api.github.com/users/Anna-V/orgs","repos_url":"https://api.github.com/users/Anna-V/repos","events_url":"https://api.github.com/users/Anna-V/events{/privacy}","received_events_url":"https://api.github.com/users/Anna-V/received_events","type":"User","site_admin":false},"body":"Доработана форма отзыва: добавлено появление/удаление дополнительных полей по мере нажатия на плюсы/минусы.","created_at":"2015-04-07T12:49:48Z","updated_at":"2015-04-11T09:39:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"daff693c7ddb1fed9d465ea7246b959d3e50ce34","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/pulls/4/commits","review_comments_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/pulls/4/comments","review_comment_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/pulls/comments{/number}","comments_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/issues/4/comments","statuses_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/statuses/7e17648376ce7cee061dcbabe4b9afa762ca20e5","head":{"label":"Anna-V:iss2","ref":"iss2","sha":"7e17648376ce7cee061dcbabe4b9afa762ca20e5","user":{"login":"Anna-V","id":8693241,"avatar_url":"https://avatars.githubusercontent.com/u/8693241?v=3","gravatar_id":"","url":"https://api.github.com/users/Anna-V","html_url":"https://github.com/Anna-V","followers_url":"https://api.github.com/users/Anna-V/followers","following_url":"https://api.github.com/users/Anna-V/following{/other_user}","gists_url":"https://api.github.com/users/Anna-V/gists{/gist_id}","starred_url":"https://api.github.com/users/Anna-V/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anna-V/subscriptions","organizations_url":"https://api.github.com/users/Anna-V/orgs","repos_url":"https://api.github.com/users/Anna-V/repos","events_url":"https://api.github.com/users/Anna-V/events{/privacy}","received_events_url":"https://api.github.com/users/Anna-V/received_events","type":"User","site_admin":false},"repo":{"id":31413070,"name":"31877-Sedona","full_name":"Anna-V/31877-Sedona","owner":{"login":"Anna-V","id":8693241,"avatar_url":"https://avatars.githubusercontent.com/u/8693241?v=3","gravatar_id":"","url":"https://api.github.com/users/Anna-V","html_url":"https://github.com/Anna-V","followers_url":"https://api.github.com/users/Anna-V/followers","following_url":"https://api.github.com/users/Anna-V/following{/other_user}","gists_url":"https://api.github.com/users/Anna-V/gists{/gist_id}","starred_url":"https://api.github.com/users/Anna-V/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anna-V/subscriptions","organizations_url":"https://api.github.com/users/Anna-V/orgs","repos_url":"https://api.github.com/users/Anna-V/repos","events_url":"https://api.github.com/users/Anna-V/events{/privacy}","received_events_url":"https://api.github.com/users/Anna-V/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Anna-V/31877-Sedona","description":null,"fork":true,"url":"https://api.github.com/repos/Anna-V/31877-Sedona","forks_url":"https://api.github.com/repos/Anna-V/31877-Sedona/forks","keys_url":"https://api.github.com/repos/Anna-V/31877-Sedona/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Anna-V/31877-Sedona/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Anna-V/31877-Sedona/teams","hooks_url":"https://api.github.com/repos/Anna-V/31877-Sedona/hooks","issue_events_url":"https://api.github.com/repos/Anna-V/31877-Sedona/issues/events{/number}","events_url":"https://api.github.com/repos/Anna-V/31877-Sedona/events","assignees_url":"https://api.github.com/repos/Anna-V/31877-Sedona/assignees{/user}","branches_url":"https://api.github.com/repos/Anna-V/31877-Sedona/branches{/branch}","tags_url":"https://api.github.com/repos/Anna-V/31877-Sedona/tags","blobs_url":"https://api.github.com/repos/Anna-V/31877-Sedona/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Anna-V/31877-Sedona/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Anna-V/31877-Sedona/git/refs{/sha}","trees_url":"https://api.github.com/repos/Anna-V/31877-Sedona/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Anna-V/31877-Sedona/statuses/{sha}","languages_url":"https://api.github.com/repos/Anna-V/31877-Sedona/languages","stargazers_url":"https://api.github.com/repos/Anna-V/31877-Sedona/stargazers","contributors_url":"https://api.github.com/repos/Anna-V/31877-Sedona/contributors","subscribers_url":"https://api.github.com/repos/Anna-V/31877-Sedona/subscribers","subscription_url":"https://api.github.com/repos/Anna-V/31877-Sedona/subscription","commits_url":"https://api.github.com/repos/Anna-V/31877-Sedona/commits{/sha}","git_commits_url":"https://api.github.com/repos/Anna-V/31877-Sedona/git/commits{/sha}","comments_url":"https://api.github.com/repos/Anna-V/31877-Sedona/comments{/number}","issue_comment_url":"https://api.github.com/repos/Anna-V/31877-Sedona/issues/comments{/number}","contents_url":"https://api.github.com/repos/Anna-V/31877-Sedona/contents/{+path}","compare_url":"https://api.github.com/repos/Anna-V/31877-Sedona/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Anna-V/31877-Sedona/merges","archive_url":"https://api.github.com/repos/Anna-V/31877-Sedona/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Anna-V/31877-Sedona/downloads","issues_url":"https://api.github.com/repos/Anna-V/31877-Sedona/issues{/number}","pulls_url":"https://api.github.com/repos/Anna-V/31877-Sedona/pulls{/number}","milestones_url":"https://api.github.com/repos/Anna-V/31877-Sedona/milestones{/number}","notifications_url":"https://api.github.com/repos/Anna-V/31877-Sedona/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Anna-V/31877-Sedona/labels{/name}","releases_url":"https://api.github.com/repos/Anna-V/31877-Sedona/releases{/id}","created_at":"2015-02-27T09:50:14Z","updated_at":"2015-03-23T19:54:20Z","pushed_at":"2015-04-10T16:31:04Z","git_url":"git://github.com/Anna-V/31877-Sedona.git","ssh_url":"git@github.com:Anna-V/31877-Sedona.git","clone_url":"https://github.com/Anna-V/31877-Sedona.git","svn_url":"https://github.com/Anna-V/31877-Sedona","homepage":null,"size":447,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"up-htmlacademy:master","ref":"master","sha":"2bbdccf7229d12be7fb315977a7c74f9713eee2f","user":{"login":"up-htmlacademy","id":9918669,"avatar_url":"https://avatars.githubusercontent.com/u/9918669?v=3","gravatar_id":"","url":"https://api.github.com/users/up-htmlacademy","html_url":"https://github.com/up-htmlacademy","followers_url":"https://api.github.com/users/up-htmlacademy/followers","following_url":"https://api.github.com/users/up-htmlacademy/following{/other_user}","gists_url":"https://api.github.com/users/up-htmlacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/up-htmlacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/up-htmlacademy/subscriptions","organizations_url":"https://api.github.com/users/up-htmlacademy/orgs","repos_url":"https://api.github.com/users/up-htmlacademy/repos","events_url":"https://api.github.com/users/up-htmlacademy/events{/privacy}","received_events_url":"https://api.github.com/users/up-htmlacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":31368988,"name":"31877-Sedona","full_name":"up-htmlacademy/31877-Sedona","owner":{"login":"up-htmlacademy","id":9918669,"avatar_url":"https://avatars.githubusercontent.com/u/9918669?v=3","gravatar_id":"","url":"https://api.github.com/users/up-htmlacademy","html_url":"https://github.com/up-htmlacademy","followers_url":"https://api.github.com/users/up-htmlacademy/followers","following_url":"https://api.github.com/users/up-htmlacademy/following{/other_user}","gists_url":"https://api.github.com/users/up-htmlacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/up-htmlacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/up-htmlacademy/subscriptions","organizations_url":"https://api.github.com/users/up-htmlacademy/orgs","repos_url":"https://api.github.com/users/up-htmlacademy/repos","events_url":"https://api.github.com/users/up-htmlacademy/events{/privacy}","received_events_url":"https://api.github.com/users/up-htmlacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/up-htmlacademy/31877-Sedona","description":"Анна Васильева","fork":false,"url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona","forks_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/forks","keys_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/keys{/key_id}","collaborators_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/teams","hooks_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/hooks","issue_events_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/issues/events{/number}","events_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/events","assignees_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/assignees{/user}","branches_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/branches{/branch}","tags_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/tags","blobs_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/git/refs{/sha}","trees_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/git/trees{/sha}","statuses_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/statuses/{sha}","languages_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/languages","stargazers_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/stargazers","contributors_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/contributors","subscribers_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/subscribers","subscription_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/subscription","commits_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/commits{/sha}","git_commits_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/git/commits{/sha}","comments_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/comments{/number}","issue_comment_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/issues/comments{/number}","contents_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/contents/{+path}","compare_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/compare/{base}...{head}","merges_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/merges","archive_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/downloads","issues_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/issues{/number}","pulls_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/pulls{/number}","milestones_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/milestones{/number}","notifications_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/labels{/name}","releases_url":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/releases{/id}","created_at":"2015-02-26T13:45:50Z","updated_at":"2015-03-24T15:37:36Z","pushed_at":"2015-04-10T16:31:05Z","git_url":"git://github.com/up-htmlacademy/31877-Sedona.git","ssh_url":"git@github.com:up-htmlacademy/31877-Sedona.git","clone_url":"https://github.com/up-htmlacademy/31877-Sedona.git","svn_url":"https://github.com/up-htmlacademy/31877-Sedona","homepage":"https://github.com/Anna-V/31877-Sedona","size":500,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/pulls/4"},"html":{"href":"https://github.com/up-htmlacademy/31877-Sedona/pull/4"},"issue":{"href":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/issues/4"},"comments":{"href":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/up-htmlacademy/31877-Sedona/statuses/7e17648376ce7cee061dcbabe4b9afa762ca20e5"}}}}