Mercurial > lada > lada-client
diff app/view/widgets/LadaForm.js @ 188:0fcec0c8c072
Removed unused code.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 05 Jul 2013 14:47:19 +0200 |
parents | df5dcdff7b69 |
children | 214d1b274a50 |
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); - //} - });