Mercurial > lada > lada-client
changeset 188:0fcec0c8c072
Removed unused code.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 05 Jul 2013 14:47:19 +0200 (2013-07-05) |
parents | ef7b8499c924 |
children | 214d1b274a50 |
files | app/view/widgets/LadaForm.js |
diffstat | 1 files changed, 0 insertions(+), 28 deletions(-) [+] |
line wrap: on
line diff
--- a/app/view/widgets/LadaForm.js Fri Jul 05 14:46:43 2013 +0200 +++ b/app/view/widgets/LadaForm.js Fri Jul 05 14:47:19 2013 +0200 @@ -91,24 +91,6 @@ }, scope: this }); - - //this.model.save({ - // callback: function(records, operation) { - // this.parseResponse(operation); - // if (operation.wasSuccessful()) { - // console.log('Save was successfull'); - // this.fireEvent('savesuccess', this, records, operation); - // } else { - // console.log('Save was not successfull'); - // this.form.markInvalid(this.errors); - // this.fireEvent('savefailure', this, records, operation); - // } - // if (callback) { - // callback.call(scope || this, this, operation.wasSuccessful(), this.model); - // } - // }, - // scope: this - //}); } }, @@ -148,14 +130,4 @@ this.setReadOnly(true); } } - // This parse method is used if the model.save() method is used to trigger - // a request on the server side. In this case the response object is - // different. - //parseResponse: function(operation) { - // this.errors = this.translateReturnCodes(operation.request.scope.reader.jsonData["errors"]); - // this.warnings = this.translateReturnCodes(operation.request.scope.reader.jsonData["warnings"]); - // this.message = Lada.getApplication().bundle.getMsg(operation.request.scope.reader.jsonData["message"]); - // //this.setReadOnly(true); - //} - });