Do not "Go to new comment" button outside of the post page.

This commit is contained in:
Alexey Skobkin 2016-05-10 00:49:46 +03:00
parent e7a48b467f
commit 072ece28cd
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ function PointPlus(ppVersion) {
$('body').append($side_panel);
if (options.is('option_right_panel_to_unread')) {
if (options.is('option_right_panel_to_unread') && $('#comments').length > 0) {
$go_to_unread_block = $('<div>').attr({
id: 'pp-go-to-unread',
}).click(function() {