git ssb

16+

Dominic / patchbay



Commit aec0d21aea07a4b1eeafa9c46b81f7a79beb6bbd

fix attachment edge-case

mix irving committed on 1/11/2017, 2:53:19 AM
Parent: 62369139dea25ef969beb858347af6351ee46780

Files changed

modules_basic/compose.jschanged
modules_basic/compose.jsView
@@ -3,9 +3,8 @@
33 const h = require('../h')
44 const u = require('../util')
55 const suggest = require('suggest-box')
66 const mentions = require('ssb-mentions')
7-const lightbox = require('hyperlightbox')
87 const cont = require('cont')
98
109 //var plugs = require('../plugs')
1110 //var suggest_mentions= plugs.asyncConcat(exports.suggest_mentions = [])
@@ -124,9 +123,11 @@
124123 files.push(file)
125124 filesById[file.link] = file
126125
127126 var embed = file.type.indexOf('image/') === 0 ? '!' : ''
128- textArea.value += '\n' + embed + '['+file.name+']('+file.link+')'
127 +
128 + textArea.value += embed + '['+file.name+']('+file.link+')'
129 + composer.className = 'Compose -expanded'
129130 console.log('added:', file)
130131 })
131132 var publishBtn = h('button', {'ev-click': publish}, 'Publish' )
132133 var actions = h('section.actions', [

Built with git-ssb-web