mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
fix in number of comments
This commit is contained in:
@@ -24,7 +24,7 @@ wn.pages['{{ name }}'].onload = function(wrapper) {
|
|||||||
render_row: function(parent, data) {
|
render_row: function(parent, data) {
|
||||||
if(!data.comments) {
|
if(!data.comments) {
|
||||||
data.comment_text = 'No comments yet.'
|
data.comment_text = 'No comments yet.'
|
||||||
} else if (data.comments=1) {
|
} else if (data.comments===1) {
|
||||||
data.comment_text = '1 comment.'
|
data.comment_text = '1 comment.'
|
||||||
} else {
|
} else {
|
||||||
data.comment_text = data.comments + ' comments.'
|
data.comment_text = data.comments + ' comments.'
|
||||||
|
|||||||
Reference in New Issue
Block a user