voterunner

quick and dirty votes and discussions
git clone https://git.ce9e.org/voterunner.git

commit
6c4c3a6a632958c99d8e3aaed8a73ff1cdd52ce4
parent
d87a346686ff2027e6cebc80627dd6e4677fa535
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2017-11-18 11:07
show preview if node is not expanded

Diffstat

M static/src/voterunner.js 3 ++-

1 files changed, 2 insertions, 1 deletions


diff --git a/static/src/voterunner.js b/static/src/voterunner.js

@@ -122,8 +122,9 @@ var tplNode = function(nodes, node, ID) {
  122   122 					attributes: delegateAttrs,
  123   123 				}, '+'),
  124   124 				h('div', {className: 'name'}, getName(node)),
   -1   125 				!node.expanded && node.comment && h('div', {className: 'preview'}, node.comment.substr(0, 100)),
  125   126 			]),
  126    -1 			h('div', {
   -1   127 			node.expanded && h('div', {
  127   128 				className: 'comment',
  128   129 				dangerouslySetInnerHTML: {
  129   130 					__html: md.render(node.comment || '')