Skip to content

Commit a01030c

Browse files
author
Ed Costello
committed
DOCS-1083 fix jira collector (missing JS blob)
1 parent 190d5dd commit a01030c

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

themes/mongodb/jiracollector.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{%- block jiracollector -%}
2+
<script type="text/javascript">
3+
jQuery.ajax({
4+
url: "https://jira.mongodb.org/s/en_US-bxctp1/782/6/1.2.4/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector-embededjs/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector-embededjs.js?collectorId=298ba4e7",
5+
type: "get",
6+
cache: true,
7+
dataType: "script"
8+
});
9+
window.ATL_JQ_PAGE_PROPS = {
10+
"triggerFunction": function(showCollectorDialog) {
11+
jQuery("#jirafeedback").click(function(e) {e.preventDefault();showCollectorDialog();});
12+
jQuery("#jirafooter").click(function(e) {e.preventDefault();showCollectorDialog();});
13+
}};
14+
</script>
15+
{%- endblock -%}

themes/mongodb/layout.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,5 +192,8 @@
192192
{%- block analytics %}
193193
{%- include "analytics.html" %}
194194
{%- endblock %}
195-
</body>
195+
{%- block jiracollector %}
196+
{%- include "jiracollector.html" %}
197+
{%- endblock %}
198+
</body>
196199
</html>

0 commit comments

Comments
 (0)