aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/models/report.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/models/report.js')
-rw-r--r--www/js/models/report.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/www/js/models/report.js b/www/js/models/report.js
index 3215449..341574c 100644
--- a/www/js/models/report.js
+++ b/www/js/models/report.js
@@ -2,7 +2,6 @@
_.extend( FMS, {
Report: Backbone.Model.extend({
urlRoot: CONFIG.FMS_URL + 'report/ajax',
- localStorage: new Backbone.LocalStorage(CONFIG.NAMESPACE + '-reports'),
defaults: {
lat: 0,
@@ -16,14 +15,6 @@
file: ''
},
- localSave: function() {
- var method = 'create';
- if ( this.id ) {
- method = 'update';
- }
- Backbone.localSync(method, this);
- },
-
sync: function(method, model, options) {
switch (method) {
case 'create':
@@ -161,12 +152,3 @@
})
});
})(FMS, Backbone, _, $);
-
-(function(FMS, Backbone, _, $) {
- _.extend( FMS, {
- Reports: Backbone.Collection.extend({
- model: FMS.Report,
- localStorage: new Backbone.LocalStorage(CONFIG.NAMESPACE + '-reports')
- })
- });
-})(FMS, Backbone, _, $);