Support late-addition of default image to file input
Fixes #256 // FREEBIE
This commit is contained in:
parent
061d57c95a
commit
583fb98cce
1 changed files with 2 additions and 3 deletions
|
@ -28,7 +28,6 @@
|
|||
this.$input = this.$('input[type=file]');
|
||||
this.thumb = new Whisper.AttachmentPreviewView();
|
||||
this.$el.addClass('file-input');
|
||||
this.$default = this.$('.default');
|
||||
this.window = options.window;
|
||||
},
|
||||
|
||||
|
@ -56,7 +55,7 @@
|
|||
},
|
||||
|
||||
addThumb: function(src) {
|
||||
this.$default.hide();
|
||||
this.$('.default').hide();
|
||||
this.thumb.src = src;
|
||||
this.$('.thumbnail').append(this.thumb.render().el);
|
||||
},
|
||||
|
@ -215,7 +214,7 @@
|
|||
this.oUrl = null;
|
||||
}
|
||||
this.thumb.remove();
|
||||
this.$default.show();
|
||||
this.$('.default').show();
|
||||
},
|
||||
|
||||
deleteFiles: function(e) {
|
||||
|
|
Loading…
Reference in a new issue