[Lada-commits] [PATCH 2 of 3] Removed unused code
Wald Commits
scm-commit at wald.intevation.org
Fri Jul 5 14:50:23 CEST 2013
# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1373028439 -7200
# Node ID 0fcec0c8c0725aa78bbbdac5e8774489044ddeda
# Parent ef7b8499c9241fdf84c9c03f1f8b551a2fe6414e
Removed unused code.
diff -r ef7b8499c924 -r 0fcec0c8c072 app/view/widgets/LadaForm.js
--- 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);
- //}
-
});
More information about the Lada-commits
mailing list