From 695b5a035be7c5ceeba289f1613b5e0e5b6d2aba Mon Sep 17 00:00:00 2001 From: Lisa Junger Date: Thu, 4 Dec 2014 16:25:53 +0100 Subject: issue #172 added timeout monitoring to ajax calls. --- web-ui/app/js/features/features.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web-ui/app/js/features') 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; -- cgit v1.2.3