summaryrefslogtreecommitdiff
path: root/web-ui/app/js/tags
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/tags
parentb636c1d8c3c4fe86f08a141d6009603163597059 (diff)
issue #172 added timeout monitoring to ajax calls.
Diffstat (limited to 'web-ui/app/js/tags')
-rw-r--r--web-ui/app/js/tags/data/tags.js4
1 files changed, 2 insertions, 2 deletions
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 <http://www.gnu.org/licenses/>.
*/
-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));
};