git ssb

10+

Matt McKegg / patchwork



Commit 7e892b5950f8eb29850d1467521b54347d7f2121

Return from compose if text area is empty

Peter Squicciarini committed on 6/15/2018, 3:30:17 PM
Parent: aae000974cbf50d2a0e3bcee4440ca9e6e5f7b26

Files changed

modules/message/html/compose.jschanged
modules/message/html/compose.jsView
@@ -165,8 +165,11 @@
165165
166166 // scoped
167167
168168 function publish () {
169+ if (!textArea.value) {
170+ return
171+ }
169172 publishing.set(true)
170173
171174 var content = extend(resolve(meta), {
172175 text: textArea.value,

Built with git-ssb-web