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.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/www/js/models/report.js b/www/js/models/report.js
index 529a6d8..2508b3f 100644
--- a/www/js/models/report.js
+++ b/www/js/models/report.js
@@ -72,6 +72,7 @@
if ( model.get('submit_clicked') == 'submit_sign_in' ) {
params.submit_sign_in = 1;
params.password_sign_in = model.get('user').get('password');
+ params.remember_me = 1;
} else {
params.password_register = model.get('user').get('password') || '';
params.submit_register = 1;
@@ -80,6 +81,7 @@
var that = this;
if ( model.get('file') && model.get('file') !== '' ) {
var fileUploadSuccess = function(r) {
+ $.mobile.loading('hide');
if ( r.response ) {
var data;
try {
@@ -99,6 +101,7 @@
};
var fileUploadFail = function() {
+ $.mobile.loading('hide');
that.trigger('error', that, FMS.strings.report_send_error, options);
};
@@ -112,6 +115,7 @@
fileOptions.chunkedMode = false;
var ft = new FileTransfer();
+ $.mobile.loading('show');
ft.upload(fileURI, CONFIG.FMS_URL + "report/new/mobile", fileUploadSuccess, fileUploadFail, fileOptions);
} else {
$.ajax( {