Commit e273010065ffea194bcb8199f124bd13fa441c47
Re-enable publish button if user cancels publish
Charles Lehner committed on 8/2/2016, 12:39:43 AMParent: 4297a42a6a9727bda3d92f59855d0b7efa361c28
Files changed
modules/compose.js | changed |
modules/message-confirm.js | changed |
modules/compose.js | ||
---|---|---|
@@ -67,9 +67,10 @@ | ||
67 | 67 | message_confirm(content, done) |
68 | 68 | |
69 | 69 | function done (err, msg) { |
70 | 70 | publishBtn.disabled = false |
71 | - if(err) return alert(err.stack) | |
71 | + if(err === 'cancelled') return | |
72 | + else if(err) return alert(err.stack) | |
72 | 73 | else ta.value = '' |
73 | 74 | |
74 | 75 | if (cb) cb(err, msg) |
75 | 76 | } |
Built with git-ssb-web