Commit aec0d21aea07a4b1eeafa9c46b81f7a79beb6bbd
fix attachment edge-case
mix irving committed on 1/11/2017, 2:53:19 AMParent: 62369139dea25ef969beb858347af6351ee46780
Files changed
modules_basic/compose.js | changed |
modules_basic/compose.js | |||
---|---|---|---|
@@ -3,9 +3,8 @@ | |||
3 | 3 … | const h = require('../h') | |
4 | 4 … | const u = require('../util') | |
5 | 5 … | const suggest = require('suggest-box') | |
6 | 6 … | const mentions = require('ssb-mentions') | |
7 | -const lightbox = require('hyperlightbox') | ||
8 | 7 … | const cont = require('cont') | |
9 | 8 … | ||
10 | 9 … | //var plugs = require('../plugs') | |
11 | 10 … | //var suggest_mentions= plugs.asyncConcat(exports.suggest_mentions = []) | |
@@ -124,9 +123,11 @@ | |||
124 | 123 … | files.push(file) | |
125 | 124 … | filesById[file.link] = file | |
126 | 125 … | ||
127 | 126 … | 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' | ||
129 | 130 … | console.log('added:', file) | |
130 | 131 … | }) | |
131 | 132 … | var publishBtn = h('button', {'ev-click': publish}, 'Publish' ) | |
132 | 133 … | var actions = h('section.actions', [ |
Built with git-ssb-web