1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-23 16:24:29 +00:00

Update compose view

This commit is contained in:
Daniel Supernault 2018-11-27 00:35:33 -07:00
parent 3cbe367869
commit c312981daf
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -63,7 +63,7 @@
<input type="file" name="media" class="d-none file-input" multiple=""> <input type="file" name="media" class="d-none file-input" multiple="">
<div class="caption d-none"> <div class="caption d-none">
<div class="form-group mb-0"> <div class="form-group mb-0">
<input type="text" class="form-control input-elevated font-weight-bold" placeholder="Add an optional caption"> <textarea class="form-control input-elevated font-weight-bold" placeholder="Add an optional caption"></textarea>
</div> </div>
</div> </div>
<div class="options"></div> <div class="options"></div>
@ -470,7 +470,7 @@ $(document).on('click', '#create', function(e) {
$('.composeLoader').removeClass('d-none'); $('.composeLoader').removeClass('d-none');
let data = { let data = {
media: pixelfed.uploader.meta, media: pixelfed.uploader.meta,
caption: $('.caption input').val(), caption: $('.caption textarea').val(),
visibility: pixelfed.uploader.visibility, visibility: pixelfed.uploader.visibility,
}; };
axios.post('/api/local/status/compose', data) axios.post('/api/local/status/compose', data)