aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/models/report.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/www/js/models/report.js b/www/js/models/report.js
index 7271926..4346249 100644
--- a/www/js/models/report.js
+++ b/www/js/models/report.js
@@ -109,15 +109,15 @@
catch(err) {
data = {};
}
- handlers.success(data);
+ that.trigger('sync', that, data, options);
} else {
- handlers.error(STRINGS.report_send_error);
+ that.trigger('error', that, FMS.strings.report_send_error, options);
}
};
var fileUploadFail = function() {
$('#ajaxOverlay').hide();
- handlers.error(STRINGS.report_send_error);
+ that.trigger('error', that, STRINGS.report_send_error, options);
};
fileURI = model.get('file');