FIX: Uncaught promise on link click; fixes broken build

This commit is contained in:
Robin Ward
2014-01-09 16:31:26 -05:00
parent af9b7bfee2
commit ca26d6d0d6
2 changed files with 7 additions and 3 deletions

View File

@@ -77,7 +77,8 @@ Discourse.ClickTrack = {
post_id: postId,
topic_id: topicId,
redirect: false
}
},
dataType: 'html'
});
window.open(href, '_blank');
return false;
@@ -91,7 +92,8 @@ Discourse.ClickTrack = {
post_id: postId,
topic_id: topicId,
redirect: false
}
},
dataType: 'html'
});
Discourse.URL.routeTo(href);
return false;