diaspora/public/javascripts/app/views/stream_object_view.js
2012-03-27 14:54:27 -07:00

19 lines
378 B
JavaScript

app.views.StreamObject = app.views.Base.extend({
destroyModel: function(evt) {
if (evt) {
evt.preventDefault();
}
if (!confirm(Diaspora.I18n.t("confirm_dialog"))) {
return
}
this.model.destroy();
this.slideAndRemove();
},
slideAndRemove : function() {
$(this.el).slideUp(400, function() {
$(this).remove();
});
}
});