Improve group update ui/ux

Promote group update to its own screen. Add typeahead contact selector
from new conversation view. Restyle to match android (more or less).

Closes #186
This commit is contained in:
lilia 2015-03-12 11:40:55 -07:00
parent 7e3961891b
commit 69d5a6a33c
10 changed files with 383 additions and 231 deletions

View file

@ -28,12 +28,13 @@
this.$input = this.$el.find('input[type=file]');
this.thumb = new Whisper.AttachmentPreviewView();
this.$el.addClass('file-input');
this.$default = this.$el.find('.default');
},
events: {
'change': 'previewImages',
'click .close': 'deleteFiles',
'click .paperclip': 'open'
'click .thumbnail': 'open'
},
open: function() {
@ -41,8 +42,9 @@
},
addThumb: function(src) {
this.$default.hide();
this.thumb.src = src;
this.$el.find('.paperclip').append(this.thumb.render().el);
this.$el.find('.thumbnail').append(this.thumb.render().el);
},
autoScale: function(file) {
@ -163,6 +165,7 @@
this.oUrl = null;
}
this.thumb.remove();
this.$default.show();
},
deleteFiles: function(e) {