{"action":"created","comment":{"url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/pulls/comments/233940179","pull_request_review_id":175470622,"id":233940179,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzk0MDE3OQ==","diff_hunk":"@@ -174,18 +182,47 @@ jQuery(document).ready(function ($) {\n             }\n         });\n \n+        $('select[name=\"buddyforms_options[form_fields][' + field_id + '][product_regular_price]\"]').change(function () {\n+            if ($(this).val() === 'hidden') {\n+\n+                regular_price_amount_row.show();\n+                regular_price_amount.show();\n+\n+            }\n+            else{\n+                regular_price_amount_row.hide();\n+            }\n+        });\n+\n         $('select[name=\"buddyforms_options[form_fields][' + field_id + '][product_sales_price]\"]').change(function () {\n             if ($(this).val() === 'hidden') {\n-                $('select[name=\"buddyforms_options[form_fields][' + field_id + '][product_sales_price_dates]\"]').val('hidden');\n+                //$('select[name=\"buddyforms_options[form_fields][' + field_id + '][product_sales_price_dates]\"]').val('hidden').change();","path":"assets/js/bf_woo_builder.js","position":50,"original_position":50,"commit_id":"a1bebf7a920a1b1670079732eff39c7562e9ba90","original_commit_id":"a1bebf7a920a1b1670079732eff39c7562e9ba90","user":{"login":"gfirem","id":11023116,"node_id":"MDQ6VXNlcjExMDIzMTE2","avatar_url":"https://avatars3.githubusercontent.com/u/11023116?v=4","gravatar_id":"","url":"https://api.github.com/users/gfirem","html_url":"https://github.com/gfirem","followers_url":"https://api.github.com/users/gfirem/followers","following_url":"https://api.github.com/users/gfirem/following{/other_user}","gists_url":"https://api.github.com/users/gfirem/gists{/gist_id}","starred_url":"https://api.github.com/users/gfirem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfirem/subscriptions","organizations_url":"https://api.github.com/users/gfirem/orgs","repos_url":"https://api.github.com/users/gfirem/repos","events_url":"https://api.github.com/users/gfirem/events{/privacy}","received_events_url":"https://api.github.com/users/gfirem/received_events","type":"User","site_admin":false},"body":"@victorveas15 please remove commented code","created_at":"2018-11-15T17:33:00Z","updated_at":"2018-11-15T17:35:15Z","html_url":"https://github.com/BuddyForms/BuddyForms-WooCommerce-Form-Elements/pull/24#discussion_r233940179","pull_request_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/pulls/24","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/pulls/comments/233940179"},"html":{"href":"https://github.com/BuddyForms/BuddyForms-WooCommerce-Form-Elements/pull/24#discussion_r233940179"},"pull_request":{"href":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/pulls/24","id":231274967,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxMjc0OTY3","html_url":"https://github.com/BuddyForms/BuddyForms-WooCommerce-Form-Elements/pull/24","diff_url":"https://github.com/BuddyForms/BuddyForms-WooCommerce-Form-Elements/pull/24.diff","patch_url":"https://github.com/BuddyForms/BuddyForms-WooCommerce-Form-Elements/pull/24.patch","issue_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/issues/24","number":24,"state":"open","locked":false,"title":"Feature/price inputs","user":{"login":"marin250189","id":11038384,"node_id":"MDQ6VXNlcjExMDM4Mzg0","avatar_url":"https://avatars3.githubusercontent.com/u/11038384?v=4","gravatar_id":"","url":"https://api.github.com/users/marin250189","html_url":"https://github.com/marin250189","followers_url":"https://api.github.com/users/marin250189/followers","following_url":"https://api.github.com/users/marin250189/following{/other_user}","gists_url":"https://api.github.com/users/marin250189/gists{/gist_id}","starred_url":"https://api.github.com/users/marin250189/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marin250189/subscriptions","organizations_url":"https://api.github.com/users/marin250189/orgs","repos_url":"https://api.github.com/users/marin250189/repos","events_url":"https://api.github.com/users/marin250189/events{/privacy}","received_events_url":"https://api.github.com/users/marin250189/received_events","type":"User","site_admin":false},"body":"Add prices related input when they are hidden","created_at":"2018-11-15T17:25:09Z","updated_at":"2018-11-15T17:35:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2c8915cd46a0501db0101e0af401509b32249a98","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/pulls/24/commits","review_comments_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/pulls/24/comments","review_comment_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/issues/24/comments","statuses_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/statuses/a1bebf7a920a1b1670079732eff39c7562e9ba90","head":{"label":"BuddyForms:feature/price_inputs","ref":"feature/price_inputs","sha":"a1bebf7a920a1b1670079732eff39c7562e9ba90","user":{"login":"BuddyForms","id":16306814,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MzA2ODE0","avatar_url":"https://avatars2.githubusercontent.com/u/16306814?v=4","gravatar_id":"","url":"https://api.github.com/users/BuddyForms","html_url":"https://github.com/BuddyForms","followers_url":"https://api.github.com/users/BuddyForms/followers","following_url":"https://api.github.com/users/BuddyForms/following{/other_user}","gists_url":"https://api.github.com/users/BuddyForms/gists{/gist_id}","starred_url":"https://api.github.com/users/BuddyForms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BuddyForms/subscriptions","organizations_url":"https://api.github.com/users/BuddyForms/orgs","repos_url":"https://api.github.com/users/BuddyForms/repos","events_url":"https://api.github.com/users/BuddyForms/events{/privacy}","received_events_url":"https://api.github.com/users/BuddyForms/received_events","type":"Organization","site_admin":false},"repo":{"id":26882037,"node_id":"MDEwOlJlcG9zaXRvcnkyNjg4MjAzNw==","name":"BuddyForms-WooCommerce-Form-Elements","full_name":"BuddyForms/BuddyForms-WooCommerce-Form-Elements","private":false,"owner":{"login":"BuddyForms","id":16306814,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MzA2ODE0","avatar_url":"https://avatars2.githubusercontent.com/u/16306814?v=4","gravatar_id":"","url":"https://api.github.com/users/BuddyForms","html_url":"https://github.com/BuddyForms","followers_url":"https://api.github.com/users/BuddyForms/followers","following_url":"https://api.github.com/users/BuddyForms/following{/other_user}","gists_url":"https://api.github.com/users/BuddyForms/gists{/gist_id}","starred_url":"https://api.github.com/users/BuddyForms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BuddyForms/subscriptions","organizations_url":"https://api.github.com/users/BuddyForms/orgs","repos_url":"https://api.github.com/users/BuddyForms/repos","events_url":"https://api.github.com/users/BuddyForms/events{/privacy}","received_events_url":"https://api.github.com/users/BuddyForms/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/BuddyForms/BuddyForms-WooCommerce-Form-Elements","description":"This Plugin adds a new section to the BuddyForms Form Builder with all WooCommerce fields to create Product creation forms for the frontend","fork":false,"url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements","forks_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/forks","keys_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/teams","hooks_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/hooks","issue_events_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/issues/events{/number}","events_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/events","assignees_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/assignees{/user}","branches_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/branches{/branch}","tags_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/tags","blobs_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/git/refs{/sha}","trees_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/statuses/{sha}","languages_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/languages","stargazers_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/stargazers","contributors_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/contributors","subscribers_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/subscribers","subscription_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/subscription","commits_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/commits{/sha}","git_commits_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/git/commits{/sha}","comments_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/comments{/number}","issue_comment_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/issues/comments{/number}","contents_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/contents/{+path}","compare_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/merges","archive_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/downloads","issues_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/issues{/number}","pulls_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/pulls{/number}","milestones_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/milestones{/number}","notifications_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/labels{/name}","releases_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/releases{/id}","deployments_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/deployments","created_at":"2014-11-19T21:17:18Z","updated_at":"2018-11-08T20:50:25Z","pushed_at":"2018-11-15T17:25:09Z","git_url":"git://github.com/BuddyForms/BuddyForms-WooCommerce-Form-Elements.git","ssh_url":"git@github.com:BuddyForms/BuddyForms-WooCommerce-Form-Elements.git","clone_url":"https://github.com/BuddyForms/BuddyForms-WooCommerce-Form-Elements.git","svn_url":"https://github.com/BuddyForms/BuddyForms-WooCommerce-Form-Elements","homepage":null,"size":875,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"BuddyForms:develop","ref":"develop","sha":"c4264b7032e0d17c7ffaa82966a8996aea624e41","user":{"login":"BuddyForms","id":16306814,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MzA2ODE0","avatar_url":"https://avatars2.githubusercontent.com/u/16306814?v=4","gravatar_id":"","url":"https://api.github.com/users/BuddyForms","html_url":"https://github.com/BuddyForms","followers_url":"https://api.github.com/users/BuddyForms/followers","following_url":"https://api.github.com/users/BuddyForms/following{/other_user}","gists_url":"https://api.github.com/users/BuddyForms/gists{/gist_id}","starred_url":"https://api.github.com/users/BuddyForms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BuddyForms/subscriptions","organizations_url":"https://api.github.com/users/BuddyForms/orgs","repos_url":"https://api.github.com/users/BuddyForms/repos","events_url":"https://api.github.com/users/BuddyForms/events{/privacy}","received_events_url":"https://api.github.com/users/BuddyForms/received_events","type":"Organization","site_admin":false},"repo":{"id":26882037,"node_id":"MDEwOlJlcG9zaXRvcnkyNjg4MjAzNw==","name":"BuddyForms-WooCommerce-Form-Elements","full_name":"BuddyForms/BuddyForms-WooCommerce-Form-Elements","private":false,"owner":{"login":"BuddyForms","id":16306814,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MzA2ODE0","avatar_url":"https://avatars2.githubusercontent.com/u/16306814?v=4","gravatar_id":"","url":"https://api.github.com/users/BuddyForms","html_url":"https://github.com/BuddyForms","followers_url":"https://api.github.com/users/BuddyForms/followers","following_url":"https://api.github.com/users/BuddyForms/following{/other_user}","gists_url":"https://api.github.com/users/BuddyForms/gists{/gist_id}","starred_url":"https://api.github.com/users/BuddyForms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BuddyForms/subscriptions","organizations_url":"https://api.github.com/users/BuddyForms/orgs","repos_url":"https://api.github.com/users/BuddyForms/repos","events_url":"https://api.github.com/users/BuddyForms/events{/privacy}","received_events_url":"https://api.github.com/users/BuddyForms/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/BuddyForms/BuddyForms-WooCommerce-Form-Elements","description":"This Plugin adds a new section to the BuddyForms Form Builder with all WooCommerce fields to create Product creation forms for the frontend","fork":false,"url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements","forks_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/forks","keys_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/teams","hooks_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/hooks","issue_events_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/issues/events{/number}","events_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/events","assignees_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/assignees{/user}","branches_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/branches{/branch}","tags_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/tags","blobs_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/git/refs{/sha}","trees_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/statuses/{sha}","languages_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/languages","stargazers_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/stargazers","contributors_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/contributors","subscribers_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/subscribers","subscription_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/subscription","commits_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/commits{/sha}","git_commits_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/git/commits{/sha}","comments_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/comments{/number}","issue_comment_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/issues/comments{/number}","contents_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/contents/{+path}","compare_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/merges","archive_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/downloads","issues_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/issues{/number}","pulls_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/pulls{/number}","milestones_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/milestones{/number}","notifications_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/labels{/name}","releases_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/releases{/id}","deployments_url":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/deployments","created_at":"2014-11-19T21:17:18Z","updated_at":"2018-11-08T20:50:25Z","pushed_at":"2018-11-15T17:25:09Z","git_url":"git://github.com/BuddyForms/BuddyForms-WooCommerce-Form-Elements.git","ssh_url":"git@github.com:BuddyForms/BuddyForms-WooCommerce-Form-Elements.git","clone_url":"https://github.com/BuddyForms/BuddyForms-WooCommerce-Form-Elements.git","svn_url":"https://github.com/BuddyForms/BuddyForms-WooCommerce-Form-Elements","homepage":null,"size":875,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/pulls/24"},"html":{"href":"https://github.com/BuddyForms/BuddyForms-WooCommerce-Form-Elements/pull/24"},"issue":{"href":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/issues/24"},"comments":{"href":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/BuddyForms/BuddyForms-WooCommerce-Form-Elements/statuses/a1bebf7a920a1b1670079732eff39c7562e9ba90"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"gfirem"}}