{"action":"created","comment":{"url":"https://api.github.com/repos/nukeviet/nukeviet/pulls/comments/216239426","pull_request_review_id":153673130,"id":216239426,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNjIzOTQyNg==","diff_hunk":"@@ -0,0 +1,110 @@\n+/**\n+ * @Project NUKEVIET 4.x\n+ * @Author VINADES.,JSC <contact@vinades.vn>\n+ * @Copyright (C) 2014 VINADES.,JSC. All rights reserved\n+ * @License GNU/GPL version 2 or any later version\n+ * @Createdate 2-9-2010 14:43\n+ */\n+\n+var nvNotificationTimer = 0;\n+var nvNotificationPage = 1;\n+var nvNotificationScrollbar = false;\n+\n+/*\n+ * Query vĩnh viễn để tính số thông báo mới\n+ */\n+function nv_get_notification() {\n+    if (nvNotificationTimer) {\n+        clearTimeout(nvNotificationTimer);\n+    }\n+    $.ajax({\n+        type: 'GET',\n+        url: script_name + '?' + nv_lang_variable + '=' + nv_lang_data + '&' + nv_name_variable + '=siteinfo&' + nv_fc_variable + '=notification&nocache=' + new Date().getTime(),\n+        data: {\n+            'notification_get': 1\n+        },\n+        success: function(data) {\n+            var indicator = $('#main-notifications>.icon-notifications .indicator');\n+            if (data.new > 0) {\n+                indicator.removeClass('d-none');\n+            } else {\n+                indicator.addClass('d-none');\n+            }\n+            $('#main-notifications>.main-notifications>li>.title .badge').html(data.total);\n+            nvNotificationTimer = setTimeout(\"nv_get_notification()\", 30000);\n+        },\n+        error: function(jqXHR, exception) {\n+            nvNotificationTimer = setTimeout(\"nv_get_notification()\", 30000);\n+        }\n+    });\n+}\n+\n+function notification_reset() {\n+    $.post(script_name + '?' + nv_lang_variable + '=' + nv_lang_data + '&' + nv_name_variable + '=siteinfo&' + nv_fc_variable + '=notification&nocache=' + new Date().getTime(), 'notification_reset=1', function(res) {\n+        var indicator = $('#main-notifications>.icon-notifications .indicator');\n+        indicator.addClass('d-none');\n+    });\n+}\n+\n+$(document).ready(function() {\n+    // Xem thử có thông báo nào mới hay không\n+    nv_get_notification();\n+\n+    // Cuộn xuống để xem nhiều thông báo hơn nữa\n+    ($('#main-notifications .nv-notification-scroller')[0]).addEventListener('ps-y-reach-end', function() {\n+        nvNotificationPage++;\n+        $('#main-notifications .loader').show();\n+        $.get(script_name + '?' + nv_lang_variable + '=' + nv_lang_data + '&' + nv_name_variable + '=siteinfo&' + nv_fc_variable + '=notification&ajax=1&page=' + nvNotificationPage + '&nocache=' + new Date().getTime(), function(result) {\n+            $('#main-notifications .nv-notification-scroller .content').append(result);\n+            $('#main-notifications .loader').hide();\n+            if (result != '') {\n+                nvNotificationScrollbar.update();\n+                $('#main-notifications .nv-notification-scroller .content span.date').timeago();\n+            }\n+        });\n+    });\n+\n+    // Khi ấn nút có hình cái chuông để xem thông báo\n+    $('#main-notifications').on('show.bs.dropdown', function() {\n+        if (nvNotificationScrollbar) {\n+            nvNotificationScrollbar.destroy();\n+            nvNotificationScrollbar = false;\n+        }\n+        notification_reset();\n+        $('#main-notifications .nv-notification-scroller .content').html('');\n+        $('#main-notifications .loader').show();\n+        nvNotificationPage = 1;\n+        $.get(script_name + '?' + nv_lang_variable + '=' + nv_lang_data + '&' + nv_name_variable + '=siteinfo&' + nv_fc_variable + '=notification&ajax=1&nocache=' + new Date().getTime(), function(result) {\n+            $('#main-notifications .nv-notification-scroller .content').html(result);\n+            $('#main-notifications .nv-notification-scroller .content span.date').timeago();\n+            $('#main-notifications .loader').hide();\n+            nvNotificationScrollbar = new PerfectScrollbar($('#main-notifications .nv-notification-scroller')[0], {\n+                wheelPropagation: false\n+            });\n+        });\n+    });\n+\n+    /*\n+     * Khi nhấp vô thông báo trên header\n+     * Đánh dấu thông báo đó là đã đọc\n+     */\n+    $('#main-notifications .nv-notification-scroller .content').delegate('ul>li', 'click', function(e) {\n+        if ($(this).hasClass('notification-unread')) {","path":"src/themes/admin_nv5/js/nv.notification.js","position":92,"original_position":92,"commit_id":"133ee80523f4db957f543e2ab4d334c7139a89c3","original_commit_id":"133ee80523f4db957f543e2ab4d334c7139a89c3","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Strings must use doublequote. (quotes)](https://app.codacy.com/app/nukeviet/nukeviet/pullRequest?prid=2089848)","created_at":"2018-09-10T08:38:55Z","updated_at":"2018-09-10T08:38:55Z","html_url":"https://github.com/nukeviet/nukeviet/pull/2716#discussion_r216239426","pull_request_url":"https://api.github.com/repos/nukeviet/nukeviet/pulls/2716","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/nukeviet/nukeviet/pulls/comments/216239426"},"html":{"href":"https://github.com/nukeviet/nukeviet/pull/2716#discussion_r216239426"},"pull_request":{"href":"https://api.github.com/repos/nukeviet/nukeviet/pulls/2716"}}},"pull_request":{"url":"https://api.github.com/repos/nukeviet/nukeviet/pulls/2716","id":210690032,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwNjkwMDMy","html_url":"https://github.com/nukeviet/nukeviet/pull/2716","diff_url":"https://github.com/nukeviet/nukeviet/pull/2716.diff","patch_url":"https://github.com/nukeviet/nukeviet/pull/2716.patch","issue_url":"https://api.github.com/repos/nukeviet/nukeviet/issues/2716","number":2716,"state":"open","locked":false,"title":"Update NukeViet 5","user":{"login":"hoaquynhtim99","id":2421714,"node_id":"MDQ6VXNlcjI0MjE3MTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2421714?v=4","gravatar_id":"","url":"https://api.github.com/users/hoaquynhtim99","html_url":"https://github.com/hoaquynhtim99","followers_url":"https://api.github.com/users/hoaquynhtim99/followers","following_url":"https://api.github.com/users/hoaquynhtim99/following{/other_user}","gists_url":"https://api.github.com/users/hoaquynhtim99/gists{/gist_id}","starred_url":"https://api.github.com/users/hoaquynhtim99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoaquynhtim99/subscriptions","organizations_url":"https://api.github.com/users/hoaquynhtim99/orgs","repos_url":"https://api.github.com/users/hoaquynhtim99/repos","events_url":"https://api.github.com/users/hoaquynhtim99/events{/privacy}","received_events_url":"https://api.github.com/users/hoaquynhtim99/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-24T09:41:36Z","updated_at":"2018-09-10T08:38:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5109e65673e4be776d4e9bc1c32c8a52f7876216","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/nukeviet/nukeviet/pulls/2716/commits","review_comments_url":"https://api.github.com/repos/nukeviet/nukeviet/pulls/2716/comments","review_comment_url":"https://api.github.com/repos/nukeviet/nukeviet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nukeviet/nukeviet/issues/2716/comments","statuses_url":"https://api.github.com/repos/nukeviet/nukeviet/statuses/133ee80523f4db957f543e2ab4d334c7139a89c3","head":{"label":"hoaquynhtim99:develop","ref":"develop","sha":"133ee80523f4db957f543e2ab4d334c7139a89c3","user":{"login":"hoaquynhtim99","id":2421714,"node_id":"MDQ6VXNlcjI0MjE3MTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2421714?v=4","gravatar_id":"","url":"https://api.github.com/users/hoaquynhtim99","html_url":"https://github.com/hoaquynhtim99","followers_url":"https://api.github.com/users/hoaquynhtim99/followers","following_url":"https://api.github.com/users/hoaquynhtim99/following{/other_user}","gists_url":"https://api.github.com/users/hoaquynhtim99/gists{/gist_id}","starred_url":"https://api.github.com/users/hoaquynhtim99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoaquynhtim99/subscriptions","organizations_url":"https://api.github.com/users/hoaquynhtim99/orgs","repos_url":"https://api.github.com/users/hoaquynhtim99/repos","events_url":"https://api.github.com/users/hoaquynhtim99/events{/privacy}","received_events_url":"https://api.github.com/users/hoaquynhtim99/received_events","type":"User","site_admin":false},"repo":{"id":40585207,"node_id":"MDEwOlJlcG9zaXRvcnk0MDU4NTIwNw==","name":"nukeviet","full_name":"hoaquynhtim99/nukeviet","owner":{"login":"hoaquynhtim99","id":2421714,"node_id":"MDQ6VXNlcjI0MjE3MTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2421714?v=4","gravatar_id":"","url":"https://api.github.com/users/hoaquynhtim99","html_url":"https://github.com/hoaquynhtim99","followers_url":"https://api.github.com/users/hoaquynhtim99/followers","following_url":"https://api.github.com/users/hoaquynhtim99/following{/other_user}","gists_url":"https://api.github.com/users/hoaquynhtim99/gists{/gist_id}","starred_url":"https://api.github.com/users/hoaquynhtim99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoaquynhtim99/subscriptions","organizations_url":"https://api.github.com/users/hoaquynhtim99/orgs","repos_url":"https://api.github.com/users/hoaquynhtim99/repos","events_url":"https://api.github.com/users/hoaquynhtim99/events{/privacy}","received_events_url":"https://api.github.com/users/hoaquynhtim99/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hoaquynhtim99/nukeviet","description":"NukeViet CMS is multi Content Management System. NukeViet CMS is the 1st open source content management system in Vietnam. NukeViet was awarded the Vietnam Talent 2011, the Ministry of Education and Training Vietnam officially encouraged to use.","fork":true,"url":"https://api.github.com/repos/hoaquynhtim99/nukeviet","forks_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/forks","keys_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/teams","hooks_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/hooks","issue_events_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/issues/events{/number}","events_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/events","assignees_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/assignees{/user}","branches_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/branches{/branch}","tags_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/tags","blobs_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/git/refs{/sha}","trees_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/statuses/{sha}","languages_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/languages","stargazers_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/stargazers","contributors_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/contributors","subscribers_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/subscribers","subscription_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/subscription","commits_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/commits{/sha}","git_commits_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/git/commits{/sha}","comments_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/comments{/number}","issue_comment_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/issues/comments{/number}","contents_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/contents/{+path}","compare_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/merges","archive_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/downloads","issues_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/issues{/number}","pulls_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/pulls{/number}","milestones_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/milestones{/number}","notifications_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/labels{/name}","releases_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/releases{/id}","deployments_url":"https://api.github.com/repos/hoaquynhtim99/nukeviet/deployments","created_at":"2015-08-12T06:57:30Z","updated_at":"2018-09-07T02:22:50Z","pushed_at":"2018-09-10T08:34:17Z","git_url":"git://github.com/hoaquynhtim99/nukeviet.git","ssh_url":"git@github.com:hoaquynhtim99/nukeviet.git","clone_url":"https://github.com/hoaquynhtim99/nukeviet.git","svn_url":"https://github.com/hoaquynhtim99/nukeviet","homepage":"http://nukeviet.vn","size":101400,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"nukeviet4.3"}},"base":{"label":"nukeviet:develop","ref":"develop","sha":"1fe3725ac823d8e73496dbddb1696d9898476ff8","user":{"login":"nukeviet","id":1892954,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4OTI5NTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1892954?v=4","gravatar_id":"","url":"https://api.github.com/users/nukeviet","html_url":"https://github.com/nukeviet","followers_url":"https://api.github.com/users/nukeviet/followers","following_url":"https://api.github.com/users/nukeviet/following{/other_user}","gists_url":"https://api.github.com/users/nukeviet/gists{/gist_id}","starred_url":"https://api.github.com/users/nukeviet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nukeviet/subscriptions","organizations_url":"https://api.github.com/users/nukeviet/orgs","repos_url":"https://api.github.com/users/nukeviet/repos","events_url":"https://api.github.com/users/nukeviet/events{/privacy}","received_events_url":"https://api.github.com/users/nukeviet/received_events","type":"Organization","site_admin":false},"repo":{"id":6841181,"node_id":"MDEwOlJlcG9zaXRvcnk2ODQxMTgx","name":"nukeviet","full_name":"nukeviet/nukeviet","owner":{"login":"nukeviet","id":1892954,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4OTI5NTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1892954?v=4","gravatar_id":"","url":"https://api.github.com/users/nukeviet","html_url":"https://github.com/nukeviet","followers_url":"https://api.github.com/users/nukeviet/followers","following_url":"https://api.github.com/users/nukeviet/following{/other_user}","gists_url":"https://api.github.com/users/nukeviet/gists{/gist_id}","starred_url":"https://api.github.com/users/nukeviet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nukeviet/subscriptions","organizations_url":"https://api.github.com/users/nukeviet/orgs","repos_url":"https://api.github.com/users/nukeviet/repos","events_url":"https://api.github.com/users/nukeviet/events{/privacy}","received_events_url":"https://api.github.com/users/nukeviet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nukeviet/nukeviet","description":"NukeViet CMS is multi Content Management System. NukeViet CMS is the 1st open source content management system in Vietnam. NukeViet was awarded the Vietnam Talent 2011, the Ministry of Education and Training Vietnam officially encouraged to use.","fork":false,"url":"https://api.github.com/repos/nukeviet/nukeviet","forks_url":"https://api.github.com/repos/nukeviet/nukeviet/forks","keys_url":"https://api.github.com/repos/nukeviet/nukeviet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nukeviet/nukeviet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nukeviet/nukeviet/teams","hooks_url":"https://api.github.com/repos/nukeviet/nukeviet/hooks","issue_events_url":"https://api.github.com/repos/nukeviet/nukeviet/issues/events{/number}","events_url":"https://api.github.com/repos/nukeviet/nukeviet/events","assignees_url":"https://api.github.com/repos/nukeviet/nukeviet/assignees{/user}","branches_url":"https://api.github.com/repos/nukeviet/nukeviet/branches{/branch}","tags_url":"https://api.github.com/repos/nukeviet/nukeviet/tags","blobs_url":"https://api.github.com/repos/nukeviet/nukeviet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nukeviet/nukeviet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nukeviet/nukeviet/git/refs{/sha}","trees_url":"https://api.github.com/repos/nukeviet/nukeviet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nukeviet/nukeviet/statuses/{sha}","languages_url":"https://api.github.com/repos/nukeviet/nukeviet/languages","stargazers_url":"https://api.github.com/repos/nukeviet/nukeviet/stargazers","contributors_url":"https://api.github.com/repos/nukeviet/nukeviet/contributors","subscribers_url":"https://api.github.com/repos/nukeviet/nukeviet/subscribers","subscription_url":"https://api.github.com/repos/nukeviet/nukeviet/subscription","commits_url":"https://api.github.com/repos/nukeviet/nukeviet/commits{/sha}","git_commits_url":"https://api.github.com/repos/nukeviet/nukeviet/git/commits{/sha}","comments_url":"https://api.github.com/repos/nukeviet/nukeviet/comments{/number}","issue_comment_url":"https://api.github.com/repos/nukeviet/nukeviet/issues/comments{/number}","contents_url":"https://api.github.com/repos/nukeviet/nukeviet/contents/{+path}","compare_url":"https://api.github.com/repos/nukeviet/nukeviet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nukeviet/nukeviet/merges","archive_url":"https://api.github.com/repos/nukeviet/nukeviet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nukeviet/nukeviet/downloads","issues_url":"https://api.github.com/repos/nukeviet/nukeviet/issues{/number}","pulls_url":"https://api.github.com/repos/nukeviet/nukeviet/pulls{/number}","milestones_url":"https://api.github.com/repos/nukeviet/nukeviet/milestones{/number}","notifications_url":"https://api.github.com/repos/nukeviet/nukeviet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nukeviet/nukeviet/labels{/name}","releases_url":"https://api.github.com/repos/nukeviet/nukeviet/releases{/id}","deployments_url":"https://api.github.com/repos/nukeviet/nukeviet/deployments","created_at":"2012-11-24T15:39:39Z","updated_at":"2018-09-05T06:13:30Z","pushed_at":"2018-09-10T08:34:18Z","git_url":"git://github.com/nukeviet/nukeviet.git","ssh_url":"git@github.com:nukeviet/nukeviet.git","clone_url":"https://github.com/nukeviet/nukeviet.git","svn_url":"https://github.com/nukeviet/nukeviet","homepage":"http://nukeviet.vn","size":97436,"stargazers_count":92,"watchers_count":92,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":177,"mirror_url":null,"archived":false,"open_issues_count":97,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":177,"open_issues":97,"watchers":92,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/nukeviet/nukeviet/pulls/2716"},"html":{"href":"https://github.com/nukeviet/nukeviet/pull/2716"},"issue":{"href":"https://api.github.com/repos/nukeviet/nukeviet/issues/2716"},"comments":{"href":"https://api.github.com/repos/nukeviet/nukeviet/issues/2716/comments"},"review_comments":{"href":"https://api.github.com/repos/nukeviet/nukeviet/pulls/2716/comments"},"review_comment":{"href":"https://api.github.com/repos/nukeviet/nukeviet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nukeviet/nukeviet/pulls/2716/commits"},"statuses":{"href":"https://api.github.com/repos/nukeviet/nukeviet/statuses/133ee80523f4db957f543e2ab4d334c7139a89c3"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codacy-bot"}}