Fixup attachment preview
This commit is contained in:
parent
11d07c5263
commit
79b4c89ce4
3 changed files with 46 additions and 5 deletions
|
@ -85,7 +85,8 @@ var Whisper = Whisper || {};
|
|||
this.thumb.remove();
|
||||
},
|
||||
|
||||
deleteFiles: function() {
|
||||
deleteFiles: function(e) {
|
||||
if (e) { e.stopPropagation(); }
|
||||
this.clearForm();
|
||||
this.$input.wrap('<form>').parent('form').trigger('reset');
|
||||
this.$input.unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue