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/tags/data/tags.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web-ui/app/js/tags') diff --git a/web-ui/app/js/tags/data/tags.js b/web-ui/app/js/tags/data/tags.js index 4a1e6af0..40614fea 100644 --- a/web-ui/app/js/tags/data/tags.js +++ b/web-ui/app/js/tags/data/tags.js @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with Pixelated. If not, see . */ -define(['flight/lib/component', 'page/events', 'mixins/with_feature_toggle'], function (defineComponent, events, withFeatureToggle) { +define(['flight/lib/component', 'page/events', 'helpers/monitored_ajax', 'mixins/with_feature_toggle'], function (defineComponent, events, monitoredAjax, withFeatureToggle) { 'use strict'; var DataTags = defineComponent(dataTags, withFeatureToggle('tags', function() { @@ -49,7 +49,7 @@ define(['flight/lib/component', 'page/events', 'mixins/with_feature_toggle'], fu }); this.fetchTags = function(event, params) { - $.ajax(this.attr.tagsResource) + monitoredAjax(this, this.attr.tagsResource) .done(sendTagsBackTo(this, params)); }; -- cgit v1.2.3