summaryrefslogtreecommitdiff
path: root/web-ui/app/js/features
diff options
context:
space:
mode:
authorLisa Junger <ljunger@thoughtworks.com>2014-12-04 16:25:53 +0100
committerLisa Junger <ljunger@thoughtworks.com>2014-12-09 15:43:33 +0100
commit695b5a035be7c5ceeba289f1613b5e0e5b6d2aba (patch)
tree6c54ff63763d1609d565783f563c7ec33b677074 /web-ui/app/js/features
parentb636c1d8c3c4fe86f08a141d6009603163597059 (diff)
issue #172 added timeout monitoring to ajax calls.
Diffstat (limited to 'web-ui/app/js/features')
-rw-r--r--web-ui/app/js/features/features.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web-ui/app/js/features/features.js b/web-ui/app/js/features/features.js
index 1a00658d..04e1fa63 100644
--- a/web-ui/app/js/features/features.js
+++ b/web-ui/app/js/features/features.js
@@ -16,7 +16,7 @@
*/
/* global _ */
'use strict';
-define([], function() {
+define(['helpers/monitored_ajax'], function(monitoredAjax) {
var cachedDisabledFeatures;
var cachedDispatcherFeatures;
@@ -32,7 +32,7 @@ define([], function() {
function fetchFeatures() {
var features;
- $.ajax('/features', {
+ monitoredAjax(this, '/features', {
async: false,
success: function (results){
features = results;