summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extensions/OrangeFactor/web/js/orange_factor.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/extensions/OrangeFactor/web/js/orange_factor.js b/extensions/OrangeFactor/web/js/orange_factor.js
index c87339dc7..fa9411cf8 100644
--- a/extensions/OrangeFactor/web/js/orange_factor.js
+++ b/extensions/OrangeFactor/web/js/orange_factor.js
@@ -74,6 +74,9 @@ $(function() {
var bugId = document.forms['changeform'].id.value;
var request = {
dataType: "json",
+ xhrFields: {
+ withCredentials: true
+ },
url: "https://brasstacks.mozilla.com/orangefactor/api/count?" +
"bugid=" + encodeURIComponent(bugId) + "&tree=trunk"
};
@@ -82,8 +85,7 @@ $(function() {
getOrangeCount(data);
})
.fail(function() {
- $('#graph-count').hide();
- $('#orange-graph').hide()
+ $('#orange-count').text('Please sign into OrangeFactor first');
});
}