Fixup attachment preview

This commit is contained in:
lilia 2015-01-24 23:18:10 -10:00
parent 11d07c5263
commit 79b4c89ce4
3 changed files with 46 additions and 5 deletions

View file

@ -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();