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