Client delete now requires confirmation
parent
6c8aeba041
commit
bd054bfd58
|
@ -114,6 +114,7 @@
|
|||
|
||||
deleteClient:function () {
|
||||
|
||||
if (confirm("Are you sure sure you would like to delete this client?")) {
|
||||
var self = this;
|
||||
|
||||
this.model.destroy({
|
||||
|
@ -127,6 +128,8 @@
|
|||
});
|
||||
|
||||
app.clientListView.delegateEvents();
|
||||
}
|
||||
|
||||
return false;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue