+ destroyModel: function() {
+ this.app.hideError();
+ var infoMsgId = this.app.showInformational( {what: "destroy " + this.model.__proto__.modelName, status: "", statusText: "in progress..."} );
+ var that = this;
+ this.model.destroy({error: function(model, result, xhr) { that.destroyError(model,result,xhr,infoMsgId);},
+ success: function(model, result, xhr) { that.destroySuccess(model,result,xhr,infoMsgId);}});
+ },
+
+ deleteClicked: function(e) {
+ e.preventDefault();
+\r this.app.confirmDialog(this, "deleteConfirmed");
+\r },
+\r
+\r deleteConfirmed: function() {
+\r modelName = this.model.modelName;
+\r this.destroyModel();
+\r this.app.navigate("list", modelName);
+\r },
+\r