1
0
Fork 0

Delete Apps

This commit is contained in:
Lucas Dohmen 2014-12-13 20:37:18 +01:00 committed by Michael Hackstein
parent c0b6e801b1
commit 0c5ca609da
1 changed files with 13 additions and 1 deletions

View File

@ -27,7 +27,19 @@ window.ApplicationDetailView = Backbone.View.extend({
},
deleteApp: function() {
alert('Delete!');
modalDialogHelper.createModalDeleteDialog(
"Delete Foxx App mounted at '" + this.model.get('mount') + "'",
"deleteFoxxApp",
this.model,
function(model) {
model.destroy({
success: function () {
$("#deleteFoxxAppmodal").modal('hide');
window.App.navigate("applications", { trigger: true });
}
});
}
);
},
appUrl: function () {