diff --git a/src/main/webapp/WEB-INF/jsp/whois.jsp b/src/main/webapp/WEB-INF/jsp/whois.jsp index 71be00bba..6dc3f288b 100644 --- a/src/main/webapp/WEB-INF/jsp/whois.jsp +++ b/src/main/webapp/WEB-INF/jsp/whois.jsp @@ -80,9 +80,11 @@ empty: "{date}", filled: "{date}
сообщений: {count}" }, - onClick: function (date, nb) { - window.open('/search.jsp?dt='+date.getTime()+'&user=${user.nick}', '_blank'); - } + onClick: function (date, count) { + if (count > 0) { + window.open('/search.jsp?dt='+date.getTime()+'&user=${user.nick}', '_blank'); + } + } }); } });