mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 02:48:23 +01:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user