{"action":"created","comment":{"url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/pulls/comments/73219712","id":73219712,"diff_hunk":"@@ -191,17 +206,23 @@ public function form( $instance ) {\n     <script>\n       jQuery(document).ready(function() {\n         \n-        jQuery('#widgets-right .color-picker, .inactive-sidebar .color-picker').wpColorPicker();\n-        jQuery(document).ajaxComplete(function() {\n-          jQuery('#widgets-right .color-picker, .inactive-sidebar .color-picker').wpColorPicker();\n+        jQuery('#color_wrap_<?php echo $uid; ?> .color-picker').each(function() {\n+          jQuery(this).wpColorPicker();\n         });\n         \n-        jQuery('.colorfield_reset').on('click', function(e) {\n+          jQuery(document).ajaxComplete(function() {\n+            jQuery('#color_wrap_<?php echo $uid; ?> .color-picker').each(function() {\n+              jQuery(this).wpColorPicker();\n+            });\n+          });\n+ \n+        \n+        jQuery('#color_wrap_<?php echo $uid; ?> .colorfield_reset').on('click', function(e) {\n           e.preventDefault();\n-          jQuery('#widgets-right .color-picker, .inactive-sidebar .color-picker').wpColorPicker('color', false);\n-          jQuery('#widgets-right .color-picker, .inactive-sidebar .color-picker').wpColorPicker('color', '');\n-          jQuery('.color_wrap_<?php echo $uid; ?> .wp-color-result').css({'background-color':'rgba(0,0,0,0)'});\n-          jQuery(this).closest('div').find('input.colorfield').val('');\n+          jQuery('#color_wrap_<?php echo $uid; ?> .color-picker').each(function() {\n+            jQuery(this).wpColorPicker('color', jQuery(this).data('default-color'));            \n+          });\n+//           jQuery(this).closest('div').find('input.colorfield').val('');","path":"Bizyhood/Views/widgets/search.php","position":133,"original_position":133,"commit_id":"c595b726aa348bfd5ff2f7f76601ca51f3b163da","original_commit_id":"c595b726aa348bfd5ff2f7f76601ca51f3b163da","user":{"login":"eugenebiz","id":3212621,"avatar_url":"https://avatars.githubusercontent.com/u/3212621?v=3","gravatar_id":"","url":"https://api.github.com/users/eugenebiz","html_url":"https://github.com/eugenebiz","followers_url":"https://api.github.com/users/eugenebiz/followers","following_url":"https://api.github.com/users/eugenebiz/following{/other_user}","gists_url":"https://api.github.com/users/eugenebiz/gists{/gist_id}","starred_url":"https://api.github.com/users/eugenebiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugenebiz/subscriptions","organizations_url":"https://api.github.com/users/eugenebiz/orgs","repos_url":"https://api.github.com/users/eugenebiz/repos","events_url":"https://api.github.com/users/eugenebiz/events{/privacy}","received_events_url":"https://api.github.com/users/eugenebiz/received_events","type":"User","site_admin":false},"body":"Please delete commented code.","created_at":"2016-08-02T19:19:58Z","updated_at":"2016-08-02T19:19:58Z","html_url":"https://github.com/Bizyhood/bizyhood-wp-plugin/pull/53#discussion_r73219712","pull_request_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/pulls/comments/73219712"},"html":{"href":"https://github.com/Bizyhood/bizyhood-wp-plugin/pull/53#discussion_r73219712"},"pull_request":{"href":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/pulls/53","id":79787624,"html_url":"https://github.com/Bizyhood/bizyhood-wp-plugin/pull/53","diff_url":"https://github.com/Bizyhood/bizyhood-wp-plugin/pull/53.diff","patch_url":"https://github.com/Bizyhood/bizyhood-wp-plugin/pull/53.patch","issue_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/issues/53","number":53,"state":"open","locked":false,"title":"Widgets color picker will return its default color. Also added reset …","user":{"login":"eugenebiz","id":3212621,"avatar_url":"https://avatars.githubusercontent.com/u/3212621?v=3","gravatar_id":"","url":"https://api.github.com/users/eugenebiz","html_url":"https://github.com/eugenebiz","followers_url":"https://api.github.com/users/eugenebiz/followers","following_url":"https://api.github.com/users/eugenebiz/following{/other_user}","gists_url":"https://api.github.com/users/eugenebiz/gists{/gist_id}","starred_url":"https://api.github.com/users/eugenebiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugenebiz/subscriptions","organizations_url":"https://api.github.com/users/eugenebiz/orgs","repos_url":"https://api.github.com/users/eugenebiz/repos","events_url":"https://api.github.com/users/eugenebiz/events{/privacy}","received_events_url":"https://api.github.com/users/eugenebiz/received_events","type":"User","site_admin":false},"body":"…per color.","created_at":"2016-08-02T18:46:50Z","updated_at":"2016-08-02T19:19:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f3d369ae3541fdf5fbef7c5eb494c14be8c1261","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/pulls/53/commits","review_comments_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/pulls/53/comments","review_comment_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/issues/53/comments","statuses_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/statuses/c595b726aa348bfd5ff2f7f76601ca51f3b163da","head":{"label":"Bizyhood:restore-default-widget-colors","ref":"restore-default-widget-colors","sha":"c595b726aa348bfd5ff2f7f76601ca51f3b163da","user":{"login":"Bizyhood","id":3849677,"avatar_url":"https://avatars.githubusercontent.com/u/3849677?v=3","gravatar_id":"","url":"https://api.github.com/users/Bizyhood","html_url":"https://github.com/Bizyhood","followers_url":"https://api.github.com/users/Bizyhood/followers","following_url":"https://api.github.com/users/Bizyhood/following{/other_user}","gists_url":"https://api.github.com/users/Bizyhood/gists{/gist_id}","starred_url":"https://api.github.com/users/Bizyhood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bizyhood/subscriptions","organizations_url":"https://api.github.com/users/Bizyhood/orgs","repos_url":"https://api.github.com/users/Bizyhood/repos","events_url":"https://api.github.com/users/Bizyhood/events{/privacy}","received_events_url":"https://api.github.com/users/Bizyhood/received_events","type":"Organization","site_admin":false},"repo":{"id":31485710,"name":"bizyhood-wp-plugin","full_name":"Bizyhood/bizyhood-wp-plugin","owner":{"login":"Bizyhood","id":3849677,"avatar_url":"https://avatars.githubusercontent.com/u/3849677?v=3","gravatar_id":"","url":"https://api.github.com/users/Bizyhood","html_url":"https://github.com/Bizyhood","followers_url":"https://api.github.com/users/Bizyhood/followers","following_url":"https://api.github.com/users/Bizyhood/following{/other_user}","gists_url":"https://api.github.com/users/Bizyhood/gists{/gist_id}","starred_url":"https://api.github.com/users/Bizyhood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bizyhood/subscriptions","organizations_url":"https://api.github.com/users/Bizyhood/orgs","repos_url":"https://api.github.com/users/Bizyhood/repos","events_url":"https://api.github.com/users/Bizyhood/events{/privacy}","received_events_url":"https://api.github.com/users/Bizyhood/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Bizyhood/bizyhood-wp-plugin","description":"Bizyhood Wordpress plugin","fork":true,"url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin","forks_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/forks","keys_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/teams","hooks_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/hooks","issue_events_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/events","assignees_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/tags","blobs_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/languages","stargazers_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/stargazers","contributors_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/contributors","subscribers_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/subscribers","subscription_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/subscription","commits_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/merges","archive_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/downloads","issues_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/labels{/name}","releases_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/deployments","created_at":"2015-03-01T03:34:22Z","updated_at":"2016-07-18T12:43:32Z","pushed_at":"2016-08-02T18:48:26Z","git_url":"git://github.com/Bizyhood/bizyhood-wp-plugin.git","ssh_url":"git@github.com:Bizyhood/bizyhood-wp-plugin.git","clone_url":"https://github.com/Bizyhood/bizyhood-wp-plugin.git","svn_url":"https://github.com/Bizyhood/bizyhood-wp-plugin","homepage":"","size":1306,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"Bizyhood:master","ref":"master","sha":"c8c98c93abeebc69bd363090c056b899779d7680","user":{"login":"Bizyhood","id":3849677,"avatar_url":"https://avatars.githubusercontent.com/u/3849677?v=3","gravatar_id":"","url":"https://api.github.com/users/Bizyhood","html_url":"https://github.com/Bizyhood","followers_url":"https://api.github.com/users/Bizyhood/followers","following_url":"https://api.github.com/users/Bizyhood/following{/other_user}","gists_url":"https://api.github.com/users/Bizyhood/gists{/gist_id}","starred_url":"https://api.github.com/users/Bizyhood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bizyhood/subscriptions","organizations_url":"https://api.github.com/users/Bizyhood/orgs","repos_url":"https://api.github.com/users/Bizyhood/repos","events_url":"https://api.github.com/users/Bizyhood/events{/privacy}","received_events_url":"https://api.github.com/users/Bizyhood/received_events","type":"Organization","site_admin":false},"repo":{"id":31485710,"name":"bizyhood-wp-plugin","full_name":"Bizyhood/bizyhood-wp-plugin","owner":{"login":"Bizyhood","id":3849677,"avatar_url":"https://avatars.githubusercontent.com/u/3849677?v=3","gravatar_id":"","url":"https://api.github.com/users/Bizyhood","html_url":"https://github.com/Bizyhood","followers_url":"https://api.github.com/users/Bizyhood/followers","following_url":"https://api.github.com/users/Bizyhood/following{/other_user}","gists_url":"https://api.github.com/users/Bizyhood/gists{/gist_id}","starred_url":"https://api.github.com/users/Bizyhood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bizyhood/subscriptions","organizations_url":"https://api.github.com/users/Bizyhood/orgs","repos_url":"https://api.github.com/users/Bizyhood/repos","events_url":"https://api.github.com/users/Bizyhood/events{/privacy}","received_events_url":"https://api.github.com/users/Bizyhood/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Bizyhood/bizyhood-wp-plugin","description":"Bizyhood Wordpress plugin","fork":true,"url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin","forks_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/forks","keys_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/teams","hooks_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/hooks","issue_events_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/events","assignees_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/tags","blobs_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/languages","stargazers_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/stargazers","contributors_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/contributors","subscribers_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/subscribers","subscription_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/subscription","commits_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/merges","archive_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/downloads","issues_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/labels{/name}","releases_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/deployments","created_at":"2015-03-01T03:34:22Z","updated_at":"2016-07-18T12:43:32Z","pushed_at":"2016-08-02T18:48:26Z","git_url":"git://github.com/Bizyhood/bizyhood-wp-plugin.git","ssh_url":"git@github.com:Bizyhood/bizyhood-wp-plugin.git","clone_url":"https://github.com/Bizyhood/bizyhood-wp-plugin.git","svn_url":"https://github.com/Bizyhood/bizyhood-wp-plugin","homepage":"","size":1306,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/pulls/53"},"html":{"href":"https://github.com/Bizyhood/bizyhood-wp-plugin/pull/53"},"issue":{"href":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/issues/53"},"comments":{"href":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/Bizyhood/bizyhood-wp-plugin/statuses/c595b726aa348bfd5ff2f7f76601ca51f3b163da"}}}}
{"actor":{"display_login":"eugenebiz"}}