From 4f86d04add9a78d06f582d0129f07027154e1d6a Mon Sep 17 00:00:00 2001 From: cel Date: Fri, 27 Jul 2018 10:59:40 -1000 Subject: Publish conformant poll-position messages --- lib/render-msg.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/render-msg.js') diff --git a/lib/render-msg.js b/lib/render-msg.js index d21f095..2e20d2f 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -1790,6 +1790,11 @@ RenderMsg.prototype.poll = function (cb) { h('p', 'reason: ', h('div', h('textarea', {name: 'poll_reason'})) ), + u.toArray(this.opts.branches).filter(function (branch) { + return branch !== self.msg.key + }).map(function (branch) { + return h('input', {type: 'hidden', name: 'branches', value: branch}) + }), h('p', h('input', {type: 'submit', value: 'preview publish position'})) ) : h('div', 'unknown poll type') ), cb) -- cgit v1.2.3