aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-12-04 14:31:24 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2014-12-04 14:31:24 +0100
commit6de8457966fca134c344114651ca9bfdc4ebac59 (patch)
treeeb4581a58034b08f6c17de9f7741062af7d32304
parent344b442e41d8cd173dda84752b82e95d3f73d79c (diff)
Treat data as undefined.
Change-Id: Idcccca3e259515fea6731251c6a271629e44e1d1
-rw-r--r--app/dashboard/static/js/linaro-base-1.0.3.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/dashboard/static/js/linaro-base-1.0.3.js b/app/dashboard/static/js/linaro-base-1.0.3.js
index 3a7c064..fd3ac64 100644
--- a/app/dashboard/static/js/linaro-base-1.0.3.js
+++ b/app/dashboard/static/js/linaro-base-1.0.3.js
@@ -145,7 +145,6 @@ var JSBase = (function() {
'traditional': true,
'cache': true,
'dataType': 'json',
- 'data': data,
'beforeSend': function(jqXHR) {
jqXHR.setRequestHeader('X-CSRFToken', csrftoken);
},
@@ -167,6 +166,10 @@ var JSBase = (function() {
}
};
+ if (data !== null || typeof data !== 'undefined') {
+ ajaxSettings.data = data;
+ }
+
if (successFunction !== null || successFunction !== undefined) {
ajaxSettings.success = successFunction;
}