{"action":"created","comment":{"url":"https://api.github.com/repos/jonnyjava/auto-repair-child/pulls/comments/50631533","id":50631533,"diff_hunk":"@@ -33,55 +32,43 @@ function build_third_step(){\n   $('#js_dynamic_form_third_step').html(content);\n }\n \n-function get_form_content(){\n-  $('.js_servicename').click(function(event){\n-    event.preventDefault();\n-    var has_details = $(this).data('car-details-fields');\n-    var fields = $(this).data('car-fields').split(',');\n-    var content = \"\";\n-    var js_toggling_class = \"\";\n-    $('#service_id').val($(this).html());\n-\n-    if (has_details){\n-      js_toggling_class = \"js_toggle_details\"\n-      content += build_row(['vin_number'], 'row bottom-gutter js_vin_search_toggler');\n-      content += build_row(['car_details_message'], 'row car-details-row bottom-gutter js_car_details_message_box');\n-    }\n+function get_form_content(event, clicked_button){\n+  var has_details = clicked_button.data('car-details-fields');\n+  var fields = clicked_button.data('car-fields').split(',');\n+  var content = '';\n+  var js_toggling_class = '';\n+  $('#service_id').val(clicked_button.html());\n \n-    if (fields.length > 1){\n-      content += build_row(fields, 'row car-details-row '+js_toggling_class);\n-    }\n+  if (has_details){\n+    js_toggling_class = 'js_toggle_details'\n+    content += build_row(['vin_number'], 'row bottom-gutter js_vin_search_toggler');\n+    content += build_row(['car_details_message'], 'row car-details-row bottom-gutter js_car_details_message_box');\n+  }\n \n-    if (has_details){\n-      content += build_row(['engine','engine_letters'], 'row car-details-row bottom-gutter '+js_toggling_class);\n-    }\n+  if (fields.length > 1){\n+    content += build_row(fields, 'row car-details-row '+js_toggling_class);\n+  }\n \n-    fields = $(this).data('service-fields').split(',');\n-    if (fields[0].length > 0){\n-      content += build_row(fields, 'row car-details-row');\n-    }\n-    $('#js_dynamic_form').html(content);\n-    $(\".js_dropdown_menu > li\").bind(\"click\", fill_dropdown_with_selected_option);\n-    $(\".js_radiobutton\").bind(\"change\", fill_radio_with_selected_option);\n-    activate_dropdown_toggle();\n-    car_selector();\n-    animate_to_next($(this));\n-    fill_problem_breadcrumb($(this).text());\n-    if (has_details){\n-      activate_details_animation();\n-      activate_vin_number_search();\n-      activate_vin_number_char_counter();\n-      activate_undo_car_breadcrumb();\n-      append_examples();\n-    }\n-  });\n-}\n+  if (has_details){\n+    content += build_row(['engine','engine_letters'], 'row car-details-row bottom-gutter '+js_toggling_class);","path":"assets/js/123row_ajax_builder.js","position":91,"original_position":91,"commit_id":"683681a5c0e1df990d26078a8a4c9842e62ee40f","original_commit_id":"683681a5c0e1df990d26078a8a4c9842e62ee40f","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long.","created_at":"2016-01-24T07:30:43Z","updated_at":"2016-01-24T07:30:43Z","html_url":"https://github.com/jonnyjava/auto-repair-child/pull/12#discussion_r50631533","pull_request_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/jonnyjava/auto-repair-child/pulls/comments/50631533"},"html":{"href":"https://github.com/jonnyjava/auto-repair-child/pull/12#discussion_r50631533"},"pull_request":{"href":"https://api.github.com/repos/jonnyjava/auto-repair-child/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/jonnyjava/auto-repair-child/pulls/12","id":56997151,"html_url":"https://github.com/jonnyjava/auto-repair-child/pull/12","diff_url":"https://github.com/jonnyjava/auto-repair-child/pull/12.diff","patch_url":"https://github.com/jonnyjava/auto-repair-child/pull/12.patch","issue_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/issues/12","number":12,"state":"open","locked":false,"title":"City validation","user":{"login":"jonnyjava","id":3618983,"avatar_url":"https://avatars.githubusercontent.com/u/3618983?v=3","gravatar_id":"","url":"https://api.github.com/users/jonnyjava","html_url":"https://github.com/jonnyjava","followers_url":"https://api.github.com/users/jonnyjava/followers","following_url":"https://api.github.com/users/jonnyjava/following{/other_user}","gists_url":"https://api.github.com/users/jonnyjava/gists{/gist_id}","starred_url":"https://api.github.com/users/jonnyjava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonnyjava/subscriptions","organizations_url":"https://api.github.com/users/jonnyjava/orgs","repos_url":"https://api.github.com/users/jonnyjava/repos","events_url":"https://api.github.com/users/jonnyjava/events{/privacy}","received_events_url":"https://api.github.com/users/jonnyjava/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-24T07:11:35Z","updated_at":"2016-01-24T07:30:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"85bd5f71d77a98dbe37340fb8551c4249450cff5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/pulls/12/commits","review_comments_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/pulls/12/comments","review_comment_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/issues/12/comments","statuses_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/statuses/683681a5c0e1df990d26078a8a4c9842e62ee40f","head":{"label":"jonnyjava:city_validation","ref":"city_validation","sha":"683681a5c0e1df990d26078a8a4c9842e62ee40f","user":{"login":"jonnyjava","id":3618983,"avatar_url":"https://avatars.githubusercontent.com/u/3618983?v=3","gravatar_id":"","url":"https://api.github.com/users/jonnyjava","html_url":"https://github.com/jonnyjava","followers_url":"https://api.github.com/users/jonnyjava/followers","following_url":"https://api.github.com/users/jonnyjava/following{/other_user}","gists_url":"https://api.github.com/users/jonnyjava/gists{/gist_id}","starred_url":"https://api.github.com/users/jonnyjava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonnyjava/subscriptions","organizations_url":"https://api.github.com/users/jonnyjava/orgs","repos_url":"https://api.github.com/users/jonnyjava/repos","events_url":"https://api.github.com/users/jonnyjava/events{/privacy}","received_events_url":"https://api.github.com/users/jonnyjava/received_events","type":"User","site_admin":false},"repo":{"id":48102274,"name":"auto-repair-child","full_name":"jonnyjava/auto-repair-child","owner":{"login":"jonnyjava","id":3618983,"avatar_url":"https://avatars.githubusercontent.com/u/3618983?v=3","gravatar_id":"","url":"https://api.github.com/users/jonnyjava","html_url":"https://github.com/jonnyjava","followers_url":"https://api.github.com/users/jonnyjava/followers","following_url":"https://api.github.com/users/jonnyjava/following{/other_user}","gists_url":"https://api.github.com/users/jonnyjava/gists{/gist_id}","starred_url":"https://api.github.com/users/jonnyjava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonnyjava/subscriptions","organizations_url":"https://api.github.com/users/jonnyjava/orgs","repos_url":"https://api.github.com/users/jonnyjava/repos","events_url":"https://api.github.com/users/jonnyjava/events{/privacy}","received_events_url":"https://api.github.com/users/jonnyjava/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonnyjava/auto-repair-child","description":"Custom child theme for wordpress","fork":false,"url":"https://api.github.com/repos/jonnyjava/auto-repair-child","forks_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/forks","keys_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/teams","hooks_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/hooks","issue_events_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/issues/events{/number}","events_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/events","assignees_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/assignees{/user}","branches_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/branches{/branch}","tags_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/tags","blobs_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/statuses/{sha}","languages_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/languages","stargazers_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/stargazers","contributors_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/contributors","subscribers_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/subscribers","subscription_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/subscription","commits_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/contents/{+path}","compare_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/merges","archive_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/downloads","issues_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/issues{/number}","pulls_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/pulls{/number}","milestones_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/milestones{/number}","notifications_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/labels{/name}","releases_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/releases{/id}","deployments_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/deployments","created_at":"2015-12-16T10:01:05Z","updated_at":"2016-01-15T10:17:33Z","pushed_at":"2016-01-24T07:30:26Z","git_url":"git://github.com/jonnyjava/auto-repair-child.git","ssh_url":"git@github.com:jonnyjava/auto-repair-child.git","clone_url":"https://github.com/jonnyjava/auto-repair-child.git","svn_url":"https://github.com/jonnyjava/auto-repair-child","homepage":null,"size":2203,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"jonnyjava:master","ref":"master","sha":"d4ffea63323aadecbed43ac18d643247a60bce39","user":{"login":"jonnyjava","id":3618983,"avatar_url":"https://avatars.githubusercontent.com/u/3618983?v=3","gravatar_id":"","url":"https://api.github.com/users/jonnyjava","html_url":"https://github.com/jonnyjava","followers_url":"https://api.github.com/users/jonnyjava/followers","following_url":"https://api.github.com/users/jonnyjava/following{/other_user}","gists_url":"https://api.github.com/users/jonnyjava/gists{/gist_id}","starred_url":"https://api.github.com/users/jonnyjava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonnyjava/subscriptions","organizations_url":"https://api.github.com/users/jonnyjava/orgs","repos_url":"https://api.github.com/users/jonnyjava/repos","events_url":"https://api.github.com/users/jonnyjava/events{/privacy}","received_events_url":"https://api.github.com/users/jonnyjava/received_events","type":"User","site_admin":false},"repo":{"id":48102274,"name":"auto-repair-child","full_name":"jonnyjava/auto-repair-child","owner":{"login":"jonnyjava","id":3618983,"avatar_url":"https://avatars.githubusercontent.com/u/3618983?v=3","gravatar_id":"","url":"https://api.github.com/users/jonnyjava","html_url":"https://github.com/jonnyjava","followers_url":"https://api.github.com/users/jonnyjava/followers","following_url":"https://api.github.com/users/jonnyjava/following{/other_user}","gists_url":"https://api.github.com/users/jonnyjava/gists{/gist_id}","starred_url":"https://api.github.com/users/jonnyjava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonnyjava/subscriptions","organizations_url":"https://api.github.com/users/jonnyjava/orgs","repos_url":"https://api.github.com/users/jonnyjava/repos","events_url":"https://api.github.com/users/jonnyjava/events{/privacy}","received_events_url":"https://api.github.com/users/jonnyjava/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonnyjava/auto-repair-child","description":"Custom child theme for wordpress","fork":false,"url":"https://api.github.com/repos/jonnyjava/auto-repair-child","forks_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/forks","keys_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/teams","hooks_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/hooks","issue_events_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/issues/events{/number}","events_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/events","assignees_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/assignees{/user}","branches_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/branches{/branch}","tags_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/tags","blobs_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/statuses/{sha}","languages_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/languages","stargazers_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/stargazers","contributors_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/contributors","subscribers_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/subscribers","subscription_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/subscription","commits_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/contents/{+path}","compare_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/merges","archive_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/downloads","issues_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/issues{/number}","pulls_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/pulls{/number}","milestones_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/milestones{/number}","notifications_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/labels{/name}","releases_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/releases{/id}","deployments_url":"https://api.github.com/repos/jonnyjava/auto-repair-child/deployments","created_at":"2015-12-16T10:01:05Z","updated_at":"2016-01-15T10:17:33Z","pushed_at":"2016-01-24T07:30:26Z","git_url":"git://github.com/jonnyjava/auto-repair-child.git","ssh_url":"git@github.com:jonnyjava/auto-repair-child.git","clone_url":"https://github.com/jonnyjava/auto-repair-child.git","svn_url":"https://github.com/jonnyjava/auto-repair-child","homepage":null,"size":2203,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jonnyjava/auto-repair-child/pulls/12"},"html":{"href":"https://github.com/jonnyjava/auto-repair-child/pull/12"},"issue":{"href":"https://api.github.com/repos/jonnyjava/auto-repair-child/issues/12"},"comments":{"href":"https://api.github.com/repos/jonnyjava/auto-repair-child/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/jonnyjava/auto-repair-child/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/jonnyjava/auto-repair-child/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jonnyjava/auto-repair-child/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/jonnyjava/auto-repair-child/statuses/683681a5c0e1df990d26078a8a4c9842e62ee40f"}}}}