only send track view on get requests

This commit is contained in:
Sam 2015-02-06 14:37:20 +11:00
parent 1ec46e3efd
commit 1d3f4f6935
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ Discourse.Ajax = Em.Mixin.create({
var performAjax = function(resolve, reject) { var performAjax = function(resolve, reject) {
if (_trackView) { if (_trackView && (!args.type || args.type === "GET")) {
_trackView = false; _trackView = false;
args.headers = { 'Discourse-Track-View': true }; args.headers = { 'Discourse-Track-View': true };
} }