Change target for appending file previews
// FREEBIE
This commit is contained in:
parent
9011a85b56
commit
fe2b152186
2 changed files with 5 additions and 2 deletions
|
@ -49,6 +49,7 @@
|
|||
|
||||
<div class="bottom-bar" id='footer'>
|
||||
<form class='send'>
|
||||
<div class='attachment-previews'></div>
|
||||
<div class='attachments'>
|
||||
<div class='paperclip choose-file thumbnail'></div>
|
||||
<input type='file' class='file-input'>
|
||||
|
@ -205,7 +206,9 @@
|
|||
<script type='text/x-tmpl-mustache' id='group_info_input'>
|
||||
<div class='group-info-input'>
|
||||
<div class='group-avatar'>
|
||||
<div class='choose-file thumbnail'> {{> avatar }} </div>
|
||||
<div class='choose-file attachment-previews thumbnail'>
|
||||
{{> avatar }}
|
||||
</div>
|
||||
<input type='file' name='avatar' class='file-input'>
|
||||
</div>
|
||||
<input type='text' name='name' class='name' placeholder='Group Name' value="{{ name }}">
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
addThumb: function(src) {
|
||||
this.$('.avatar').hide();
|
||||
this.thumb.src = src;
|
||||
this.$('.thumbnail').append(this.thumb.render().el);
|
||||
this.$('.attachment-previews').append(this.thumb.render().el);
|
||||
},
|
||||
|
||||
autoScale: function(file) {
|
||||
|
|
Loading…
Reference in a new issue