},\r
\r
saveError: function(model, result, xhr, infoMsgId) {\r
},\r
\r
saveError: function(model, result, xhr, infoMsgId) {\r
result["infoMsgId"] = infoMsgId;\r
this.app.showError(result);\r
},\r
\r
saveSuccess: function(model, result, xhr, infoMsgId) {\r
result = {status: xhr.xhr.status, statusText: xhr.xhr.statusText};\r
result["infoMsgId"] = infoMsgId;\r
this.app.showError(result);\r
},\r
\r
saveSuccess: function(model, result, xhr, infoMsgId) {\r
result = {status: xhr.xhr.status, statusText: xhr.xhr.statusText};\r
result["infoMsgId"] = infoMsgId;\r
this.app.showSuccess(result);\r
},
destroyError: function(model, result, xhr, infoMsgId) {
result["infoMsgId"] = infoMsgId;\r
this.app.showSuccess(result);\r
},
destroyError: function(model, result, xhr, infoMsgId) {
result["infoMsgId"] = infoMsgId;\r
this.app.showError(result);\r
},\r
\r
destroySuccess: function(model, result, xhr, infoMsgId) {\r
result = {status: xhr.xhr.status, statusText: xhr.xhr.statusText};\r
result["infoMsgId"] = infoMsgId;\r
this.app.showError(result);\r
},\r
\r
destroySuccess: function(model, result, xhr, infoMsgId) {\r
result = {status: xhr.xhr.status, statusText: xhr.xhr.statusText};\r
- var infoMsgId = this.app.showInformational( {what: "save " + this.model.__proto__.modelName, status: "", statusText: "in progress..."} );\r
+ var infoMsgId = this.app.showInformational( {what: "save " + model.modelName + " " + model.attributes.humanReadableName, status: "", statusText: "in progress..."} );\r
- var infoMsgId = this.app.showInformational( {what: "destroy " + this.model.__proto__.modelName, status: "", statusText: "in progress..."} );
+ var infoMsgId = this.app.showInformational( {what: "destroy " + model.modelName + " " + model.attributes.humanReadableName, 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);}});
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);}});