From eb154e32eb689b4eedc98deced167f2d261c3cbe Mon Sep 17 00:00:00 2001 From: Ed Costello Date: Thu, 18 Oct 2012 11:08:42 -0400 Subject: [PATCH 1/4] Add jquery based jira issue collector --- themes/mongodb/layout.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/themes/mongodb/layout.html b/themes/mongodb/layout.html index 49e343965d0..9141d6c2014 100644 --- a/themes/mongodb/layout.html +++ b/themes/mongodb/layout.html @@ -311,5 +311,13 @@ {%- endblock %} - - +{%- block jiracollector -%} +jQuery.ajax({ + 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=4a7ac3e7", + type: "get", + cache: true, + dataType: "script" +}); +{%- endblock %} + + \ No newline at end of file From ca58da2787941cf51b0fc933341774b18db27815 Mon Sep 17 00:00:00 2001 From: Ed Costello Date: Thu, 18 Oct 2012 11:36:05 -0400 Subject: [PATCH 2/4] fix rookie level javascript mistake --- themes/mongodb/layout.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/mongodb/layout.html b/themes/mongodb/layout.html index 9141d6c2014..4781a55fbd6 100644 --- a/themes/mongodb/layout.html +++ b/themes/mongodb/layout.html @@ -312,12 +312,14 @@ {%- endblock %} {%- block jiracollector -%} + {%- endblock %} - \ No newline at end of file + From 15a7a070eb290e26a40088b94eb07775ef64bbb8 Mon Sep 17 00:00:00 2001 From: Ed Costello Date: Thu, 18 Oct 2012 13:13:17 -0400 Subject: [PATCH 3/4] Alternate JS coding for feedback --- themes/mongodb/layout.html | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/themes/mongodb/layout.html b/themes/mongodb/layout.html index 4781a55fbd6..a7b2a1969f4 100644 --- a/themes/mongodb/layout.html +++ b/themes/mongodb/layout.html @@ -240,7 +240,7 @@ @@ -313,13 +313,24 @@ {%- endblock %} {%- block jiracollector -%} {%- endblock %} - + \ No newline at end of file From e131684b274b18088f92a8443418779bb2df2489 Mon Sep 17 00:00:00 2001 From: Ed Costello Date: Thu, 18 Oct 2012 17:31:37 -0400 Subject: [PATCH 4/4] DOCS-482 add jira collector for feedback --- themes/mongodb/layout.html | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/themes/mongodb/layout.html b/themes/mongodb/layout.html index a7b2a1969f4..d208a2075d1 100644 --- a/themes/mongodb/layout.html +++ b/themes/mongodb/layout.html @@ -43,7 +43,7 @@ {%- endfor #}
  • | {{- githublink() -}}
  • | GitHub
  • -
  • Jira
  • +
  • Jira
  • {%- if show_logo %}
  • {%- endif %} @@ -240,7 +240,7 @@ @@ -320,16 +320,13 @@ cache: true, dataType: "script" }); - window.ATL_JQ_PAGE_PROPS = { "triggerFunction": function(showCollectorDialog) { - //Requries that jQuery is available! - jQuery("#myCustomTrigger").click(function(e) { + jQuery("#jirafeedback").click(function(e) { e.preventDefault(); showCollectorDialog(); }); }}; - {%- endblock %}