{"action":"created","comment":{"url":"https://api.github.com/repos/GeoDirectory/geodirectory/pulls/comments/62991771","id":62991771,"diff_hunk":"@@ -1,114 +1,104 @@\n-\r\n function geodir_click_search($this) {\r\n     //we delay this so other functions have a change to change setting before search\r\n-    setTimeout(function(){\r\n-    jQuery($this).parent().find('.geodir_submit_search').click();\r\n+    setTimeout(function() {\r\n+        jQuery($this).parent().find('.geodir_submit_search').click();\r\n     }, 100);\r\n }\r\n \r\n function addToFavourite(post_id, action) {\r\n-\r\n     var fav_url;\r\n-\r\n+    \r\n     if (action == 'add') {\r\n         fav_url = geodir_all_js_msg.geodir_admin_ajax_url + '?action=geodir_ajax_action&geodir_ajax=favorite&ajax_action=add&pid=' + post_id;\r\n-    }\r\n-    else {\r\n+    } else {\r\n         fav_url = geodir_all_js_msg.geodir_admin_ajax_url + '?action=geodir_ajax_action&geodir_ajax=favorite&ajax_action=remove&pid=' + post_id;\r\n     }\r\n-\r\n+    \r\n     jQuery.ajax({\r\n         url: fav_url,\r\n         type: 'GET',\r\n         dataType: 'html',\r\n         timeout: 20000,\r\n-        error: function () {\r\n+        error: function() {\r\n             alert(geodir_all_js_msg.loading_listing_error_favorite);\r\n         },\r\n-        success: function (html) {\r\n+        success: function(html) {\r\n             jQuery('.favorite_property_' + post_id).html(html);\r\n         }\r\n     });\r\n     return false;\r\n }\r\n \r\n-jQuery(document).ready(function () {\r\n+jQuery(document).ready(function($) {\r\n     if (geodir_all_js_msg.fa_rating) { // font awesome rating\r\n-\t\tjQuery('.gd-fa-rating').barrating({\r\n-\t\t\ttheme: 'fontawesome-stars',\r\n-\t\t\tonSelect: function(value, text, event) {\r\n-\t\t\t\tif (geodir_all_js_msg.reviewrating) {\r\n-\t\t\t\t\tif (jQuery(this.$elem).closest('form').attr('id') == 'post') {\r\n-\t\t\t\t\t\tjQuery(this.$elem).closest('.br-theme-fontawesome-stars').parent().find('[name^=geodir_rating]').val(value);\r\n-\t\t\t\t\t} else {\r\n-\t\t\t\t\t\tjQuery(this.$elem).parent().parent().find('.geodir_reviewratings_current_rating').val(value);\r\n-\t\t\t\t\t}\r\n-\t\t\t\t} else {\r\n-\t\t\t\t\tjQuery(\"#geodir_overallrating\").val(value);\r\n-\t\t\t\t}\r\n-\t\t\t}\r\n-\t\t});\r\n-\t} else { // default rating\r\n-\t\tjQuery('.gd_rating').jRating({\r\n-\t\t\t/** String vars **/\r\n-\t\t\t//bigStarsPath : geodir_all_js_msg.geodir_plugin_url+'/geodirectory-assets/images/stars.png',\r\n-\t\t\tbigStarsPath: geodir_all_js_msg.geodir_default_rating_star_icon,\r\n-\t\t\tsmallStarsPath: geodir_all_js_msg.geodir_plugin_url + '/geodirectory-assets/images/small.png',\r\n-\t\t\tphpPath: geodir_all_js_msg.geodir_plugin_url + '/jRating.php',\r\n-\t\t\ttype: 'big', // can be set to 'small' or 'big'\r\n-\r\n-\t\t\t/** Boolean vars **/\r\n-\t\t\tstep: true, // if true,  mouseover binded star by star,\r\n-\t\t\tisDisabled: false,\r\n-\t\t\tshowRateInfo: true,\r\n-\t\t\tcanRateAgain: true,\r\n-\r\n-\t\t\t/** Integer vars **/\r\n-\t\t\tlength: 5, // number of star to display\r\n-\t\t\tdecimalLength: 0, // number of decimals.. Max 3, but you can complete the function 'getNote'\r\n-\t\t\trateMax: 5, // maximal rate - integer from 0 to 9999 (or more)\r\n-\t\t\trateInfosX: -45, // relative position in X axis of the info box when mouseover\r\n-\t\t\trateInfosY: 5, // relative position in Y axis of the info box when mouseover\r\n-\t\t\tnbRates: 100,\r\n-\r\n-\t\t\t/** Functions **/\r\n-\t\t\tonSuccess: function (element, rate) {\r\n-\t\t\t\tjQuery('#geodir_overallrating').val(rate);\r\n-\t\t\t},\r\n-\t\t\tonTouchstart: function (element, rate) {\r\n-\t\t\t\tjQuery('#geodir_overallrating').val(rate);\r\n-\t\t\t},\r\n-\t\t\tonError: function () {\r\n-\t\t\t\talert(geodir_all_js_msg.rating_error_msg);\r\n-\t\t\t}\r\n-\t\t});\r\n-\t}\r\n-});\r\n+        jQuery('.gd-fa-rating').barrating({\r\n+            theme: 'fontawesome-stars',\r\n+            onSelect: function(value, text, event) {\r\n+                if (geodir_all_js_msg.reviewrating) {\r\n+                    if (jQuery(this.$elem).closest('form').attr('id') == 'post') {\r\n+                        jQuery(this.$elem).closest('.br-theme-fontawesome-stars').parent().find('[name^=geodir_rating]').val(value);\r\n+                    } else {\r\n+                        jQuery(this.$elem).parent().parent().find('.geodir_reviewratings_current_rating').val(value);\r\n+                    }\r\n+                } else {\r\n+                    jQuery(\"#geodir_overallrating\").val(value);\r\n+                }\r\n+            }\r\n+        });\r\n+    } else { // default rating\r\n+        jQuery('.gd_rating').jRating({\r\n+            /** String vars **/\r\n+            //bigStarsPath : geodir_all_js_msg.geodir_plugin_url+'/geodirectory-assets/images/stars.png',\r\n+            bigStarsPath: geodir_all_js_msg.geodir_default_rating_star_icon,\r","path":"geodirectory-assets/js/on_document_load.js","position":113,"original_position":113,"commit_id":"7e950aaf121c9ce26d4a5b68ed781621beb5b3a3","original_commit_id":"7e950aaf121c9ce26d4a5b68ed781621beb5b3a3","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Identifier 'geodir_all_js_msg' is not in camel case.<br>Identifier 'geodir_default_rating_star_icon' is not in camel case.","created_at":"2016-05-12T09:39:58Z","updated_at":"2016-05-12T09:39:58Z","html_url":"https://github.com/GeoDirectory/geodirectory/pull/238#discussion_r62991771","pull_request_url":"https://api.github.com/repos/GeoDirectory/geodirectory/pulls/238","_links":{"self":{"href":"https://api.github.com/repos/GeoDirectory/geodirectory/pulls/comments/62991771"},"html":{"href":"https://github.com/GeoDirectory/geodirectory/pull/238#discussion_r62991771"},"pull_request":{"href":"https://api.github.com/repos/GeoDirectory/geodirectory/pulls/238"}}},"pull_request":{"url":"https://api.github.com/repos/GeoDirectory/geodirectory/pulls/238","id":69806602,"html_url":"https://github.com/GeoDirectory/geodirectory/pull/238","diff_url":"https://github.com/GeoDirectory/geodirectory/pull/238.diff","patch_url":"https://github.com/GeoDirectory/geodirectory/pull/238.patch","issue_url":"https://api.github.com/repos/GeoDirectory/geodirectory/issues/238","number":238,"state":"open","locked":false,"title":"OpenStreetMap integration added for maps - ADDED","user":{"login":"kprajapatii","id":7394489,"avatar_url":"https://avatars.githubusercontent.com/u/7394489?v=3","gravatar_id":"","url":"https://api.github.com/users/kprajapatii","html_url":"https://github.com/kprajapatii","followers_url":"https://api.github.com/users/kprajapatii/followers","following_url":"https://api.github.com/users/kprajapatii/following{/other_user}","gists_url":"https://api.github.com/users/kprajapatii/gists{/gist_id}","starred_url":"https://api.github.com/users/kprajapatii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kprajapatii/subscriptions","organizations_url":"https://api.github.com/users/kprajapatii/orgs","repos_url":"https://api.github.com/users/kprajapatii/repos","events_url":"https://api.github.com/users/kprajapatii/events{/privacy}","received_events_url":"https://api.github.com/users/kprajapatii/received_events","type":"User","site_admin":false},"body":"OpenStreetMap integration added for maps - ADDED","created_at":"2016-05-12T09:39:32Z","updated_at":"2016-05-12T09:39:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4fc4b96d3c7b622f9607005ab7bc5b5d33578ddb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GeoDirectory/geodirectory/pulls/238/commits","review_comments_url":"https://api.github.com/repos/GeoDirectory/geodirectory/pulls/238/comments","review_comment_url":"https://api.github.com/repos/GeoDirectory/geodirectory/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GeoDirectory/geodirectory/issues/238/comments","statuses_url":"https://api.github.com/repos/GeoDirectory/geodirectory/statuses/7e950aaf121c9ce26d4a5b68ed781621beb5b3a3","head":{"label":"kprajapatii:master","ref":"master","sha":"7e950aaf121c9ce26d4a5b68ed781621beb5b3a3","user":{"login":"kprajapatii","id":7394489,"avatar_url":"https://avatars.githubusercontent.com/u/7394489?v=3","gravatar_id":"","url":"https://api.github.com/users/kprajapatii","html_url":"https://github.com/kprajapatii","followers_url":"https://api.github.com/users/kprajapatii/followers","following_url":"https://api.github.com/users/kprajapatii/following{/other_user}","gists_url":"https://api.github.com/users/kprajapatii/gists{/gist_id}","starred_url":"https://api.github.com/users/kprajapatii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kprajapatii/subscriptions","organizations_url":"https://api.github.com/users/kprajapatii/orgs","repos_url":"https://api.github.com/users/kprajapatii/repos","events_url":"https://api.github.com/users/kprajapatii/events{/privacy}","received_events_url":"https://api.github.com/users/kprajapatii/received_events","type":"User","site_admin":false},"repo":{"id":58428932,"name":"geodirectory","full_name":"kprajapatii/geodirectory","owner":{"login":"kprajapatii","id":7394489,"avatar_url":"https://avatars.githubusercontent.com/u/7394489?v=3","gravatar_id":"","url":"https://api.github.com/users/kprajapatii","html_url":"https://github.com/kprajapatii","followers_url":"https://api.github.com/users/kprajapatii/followers","following_url":"https://api.github.com/users/kprajapatii/following{/other_user}","gists_url":"https://api.github.com/users/kprajapatii/gists{/gist_id}","starred_url":"https://api.github.com/users/kprajapatii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kprajapatii/subscriptions","organizations_url":"https://api.github.com/users/kprajapatii/orgs","repos_url":"https://api.github.com/users/kprajapatii/repos","events_url":"https://api.github.com/users/kprajapatii/events{/privacy}","received_events_url":"https://api.github.com/users/kprajapatii/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kprajapatii/geodirectory","description":"GeoDirectory is the fastest growing Directory plugin for WordPress. Feel free to contribute or suggest new developments and help us take GD to the next level. http://wpgeodirectory.com","fork":true,"url":"https://api.github.com/repos/kprajapatii/geodirectory","forks_url":"https://api.github.com/repos/kprajapatii/geodirectory/forks","keys_url":"https://api.github.com/repos/kprajapatii/geodirectory/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kprajapatii/geodirectory/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kprajapatii/geodirectory/teams","hooks_url":"https://api.github.com/repos/kprajapatii/geodirectory/hooks","issue_events_url":"https://api.github.com/repos/kprajapatii/geodirectory/issues/events{/number}","events_url":"https://api.github.com/repos/kprajapatii/geodirectory/events","assignees_url":"https://api.github.com/repos/kprajapatii/geodirectory/assignees{/user}","branches_url":"https://api.github.com/repos/kprajapatii/geodirectory/branches{/branch}","tags_url":"https://api.github.com/repos/kprajapatii/geodirectory/tags","blobs_url":"https://api.github.com/repos/kprajapatii/geodirectory/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kprajapatii/geodirectory/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kprajapatii/geodirectory/git/refs{/sha}","trees_url":"https://api.github.com/repos/kprajapatii/geodirectory/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kprajapatii/geodirectory/statuses/{sha}","languages_url":"https://api.github.com/repos/kprajapatii/geodirectory/languages","stargazers_url":"https://api.github.com/repos/kprajapatii/geodirectory/stargazers","contributors_url":"https://api.github.com/repos/kprajapatii/geodirectory/contributors","subscribers_url":"https://api.github.com/repos/kprajapatii/geodirectory/subscribers","subscription_url":"https://api.github.com/repos/kprajapatii/geodirectory/subscription","commits_url":"https://api.github.com/repos/kprajapatii/geodirectory/commits{/sha}","git_commits_url":"https://api.github.com/repos/kprajapatii/geodirectory/git/commits{/sha}","comments_url":"https://api.github.com/repos/kprajapatii/geodirectory/comments{/number}","issue_comment_url":"https://api.github.com/repos/kprajapatii/geodirectory/issues/comments{/number}","contents_url":"https://api.github.com/repos/kprajapatii/geodirectory/contents/{+path}","compare_url":"https://api.github.com/repos/kprajapatii/geodirectory/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kprajapatii/geodirectory/merges","archive_url":"https://api.github.com/repos/kprajapatii/geodirectory/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kprajapatii/geodirectory/downloads","issues_url":"https://api.github.com/repos/kprajapatii/geodirectory/issues{/number}","pulls_url":"https://api.github.com/repos/kprajapatii/geodirectory/pulls{/number}","milestones_url":"https://api.github.com/repos/kprajapatii/geodirectory/milestones{/number}","notifications_url":"https://api.github.com/repos/kprajapatii/geodirectory/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kprajapatii/geodirectory/labels{/name}","releases_url":"https://api.github.com/repos/kprajapatii/geodirectory/releases{/id}","deployments_url":"https://api.github.com/repos/kprajapatii/geodirectory/deployments","created_at":"2016-05-10T04:07:16Z","updated_at":"2016-05-10T04:07:18Z","pushed_at":"2016-05-12T09:38:13Z","git_url":"git://github.com/kprajapatii/geodirectory.git","ssh_url":"git@github.com:kprajapatii/geodirectory.git","clone_url":"https://github.com/kprajapatii/geodirectory.git","svn_url":"https://github.com/kprajapatii/geodirectory","homepage":"http://wpgeodirectory.com/","size":5684,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"GeoDirectory:master","ref":"master","sha":"192937d5e85822829ee4ecf383919ea4c841ab5c","user":{"login":"GeoDirectory","id":10975366,"avatar_url":"https://avatars.githubusercontent.com/u/10975366?v=3","gravatar_id":"","url":"https://api.github.com/users/GeoDirectory","html_url":"https://github.com/GeoDirectory","followers_url":"https://api.github.com/users/GeoDirectory/followers","following_url":"https://api.github.com/users/GeoDirectory/following{/other_user}","gists_url":"https://api.github.com/users/GeoDirectory/gists{/gist_id}","starred_url":"https://api.github.com/users/GeoDirectory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeoDirectory/subscriptions","organizations_url":"https://api.github.com/users/GeoDirectory/orgs","repos_url":"https://api.github.com/users/GeoDirectory/repos","events_url":"https://api.github.com/users/GeoDirectory/events{/privacy}","received_events_url":"https://api.github.com/users/GeoDirectory/received_events","type":"Organization","site_admin":false},"repo":{"id":30706461,"name":"geodirectory","full_name":"GeoDirectory/geodirectory","owner":{"login":"GeoDirectory","id":10975366,"avatar_url":"https://avatars.githubusercontent.com/u/10975366?v=3","gravatar_id":"","url":"https://api.github.com/users/GeoDirectory","html_url":"https://github.com/GeoDirectory","followers_url":"https://api.github.com/users/GeoDirectory/followers","following_url":"https://api.github.com/users/GeoDirectory/following{/other_user}","gists_url":"https://api.github.com/users/GeoDirectory/gists{/gist_id}","starred_url":"https://api.github.com/users/GeoDirectory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeoDirectory/subscriptions","organizations_url":"https://api.github.com/users/GeoDirectory/orgs","repos_url":"https://api.github.com/users/GeoDirectory/repos","events_url":"https://api.github.com/users/GeoDirectory/events{/privacy}","received_events_url":"https://api.github.com/users/GeoDirectory/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GeoDirectory/geodirectory","description":"GeoDirectory is the fastest growing Directory plugin for WordPress. Feel free to contribute or suggest new developments and help us take GD to the next level. http://wpgeodirectory.com","fork":false,"url":"https://api.github.com/repos/GeoDirectory/geodirectory","forks_url":"https://api.github.com/repos/GeoDirectory/geodirectory/forks","keys_url":"https://api.github.com/repos/GeoDirectory/geodirectory/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GeoDirectory/geodirectory/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GeoDirectory/geodirectory/teams","hooks_url":"https://api.github.com/repos/GeoDirectory/geodirectory/hooks","issue_events_url":"https://api.github.com/repos/GeoDirectory/geodirectory/issues/events{/number}","events_url":"https://api.github.com/repos/GeoDirectory/geodirectory/events","assignees_url":"https://api.github.com/repos/GeoDirectory/geodirectory/assignees{/user}","branches_url":"https://api.github.com/repos/GeoDirectory/geodirectory/branches{/branch}","tags_url":"https://api.github.com/repos/GeoDirectory/geodirectory/tags","blobs_url":"https://api.github.com/repos/GeoDirectory/geodirectory/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GeoDirectory/geodirectory/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GeoDirectory/geodirectory/git/refs{/sha}","trees_url":"https://api.github.com/repos/GeoDirectory/geodirectory/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GeoDirectory/geodirectory/statuses/{sha}","languages_url":"https://api.github.com/repos/GeoDirectory/geodirectory/languages","stargazers_url":"https://api.github.com/repos/GeoDirectory/geodirectory/stargazers","contributors_url":"https://api.github.com/repos/GeoDirectory/geodirectory/contributors","subscribers_url":"https://api.github.com/repos/GeoDirectory/geodirectory/subscribers","subscription_url":"https://api.github.com/repos/GeoDirectory/geodirectory/subscription","commits_url":"https://api.github.com/repos/GeoDirectory/geodirectory/commits{/sha}","git_commits_url":"https://api.github.com/repos/GeoDirectory/geodirectory/git/commits{/sha}","comments_url":"https://api.github.com/repos/GeoDirectory/geodirectory/comments{/number}","issue_comment_url":"https://api.github.com/repos/GeoDirectory/geodirectory/issues/comments{/number}","contents_url":"https://api.github.com/repos/GeoDirectory/geodirectory/contents/{+path}","compare_url":"https://api.github.com/repos/GeoDirectory/geodirectory/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GeoDirectory/geodirectory/merges","archive_url":"https://api.github.com/repos/GeoDirectory/geodirectory/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GeoDirectory/geodirectory/downloads","issues_url":"https://api.github.com/repos/GeoDirectory/geodirectory/issues{/number}","pulls_url":"https://api.github.com/repos/GeoDirectory/geodirectory/pulls{/number}","milestones_url":"https://api.github.com/repos/GeoDirectory/geodirectory/milestones{/number}","notifications_url":"https://api.github.com/repos/GeoDirectory/geodirectory/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GeoDirectory/geodirectory/labels{/name}","releases_url":"https://api.github.com/repos/GeoDirectory/geodirectory/releases{/id}","deployments_url":"https://api.github.com/repos/GeoDirectory/geodirectory/deployments","created_at":"2015-02-12T14:38:21Z","updated_at":"2016-05-02T00:23:55Z","pushed_at":"2016-05-12T09:39:32Z","git_url":"git://github.com/GeoDirectory/geodirectory.git","ssh_url":"git@github.com:GeoDirectory/geodirectory.git","clone_url":"https://github.com/GeoDirectory/geodirectory.git","svn_url":"https://github.com/GeoDirectory/geodirectory","homepage":"http://wpgeodirectory.com/","size":5676,"stargazers_count":8,"watchers_count":8,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":1,"forks":7,"open_issues":1,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GeoDirectory/geodirectory/pulls/238"},"html":{"href":"https://github.com/GeoDirectory/geodirectory/pull/238"},"issue":{"href":"https://api.github.com/repos/GeoDirectory/geodirectory/issues/238"},"comments":{"href":"https://api.github.com/repos/GeoDirectory/geodirectory/issues/238/comments"},"review_comments":{"href":"https://api.github.com/repos/GeoDirectory/geodirectory/pulls/238/comments"},"review_comment":{"href":"https://api.github.com/repos/GeoDirectory/geodirectory/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GeoDirectory/geodirectory/pulls/238/commits"},"statuses":{"href":"https://api.github.com/repos/GeoDirectory/geodirectory/statuses/7e950aaf121c9ce26d4a5b68ed781621beb5b3a3"}}}}