Füge kaputtes JavaScript für den Jira Issue Collector hinzu

This commit is contained in:
Jonny 2019-05-27 15:55:42 +02:00
parent 4627a30ec0
commit fc505939b9
4 changed files with 31 additions and 1 deletions

4
.gitignore vendored
View File

@ -1,4 +1,6 @@
/.next/
/node_modules/
/.idea
check-syntax.sh
check-syntax
server
format

View File

@ -17,6 +17,7 @@
"axios": "^0.18.0",
"bootstrap": "^4.1.3",
"express": "^4.16.4",
"jquery": "^3.4.1",
"next": "^7.0.2",
"react": "^16.6.1",
"react-dom": "^16.6.1",

View File

@ -23,6 +23,28 @@ function Main() {
<Marketing/>
<MainPromotedLinks/>
<MainBottomSummary/>
<script>
// Requires jQuery!
jQuery.ajax({
url: "https://jiratinf16b4.it.dh-karlsruhe.de:8443/s/82f45859d4fcea9e0eaf99f49fb17990-T/-dal5ft/712002/b6b48b2829824b869586ac216d119363/2.0.31/_/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?locale=en-US&collectorId=e275a6f5",
type: "get",
cache: true,
dataType: "script"
});
window.ATL_JQ_PAGE_PROPS = {
"triggerFunction": function(showCollectorDialog) {
//Requires that jQuery is available!
jQuery("#myCustomTrigger").click(function(e) {
e.preventDefault();
showCollectorDialog();
});
}};
</script>
</div>
);
}

View File

@ -4747,6 +4747,11 @@ isurl@^1.0.0-alpha5:
has-to-string-tag-x "^1.2.0"
is-object "^1.0.1"
jquery@^3.4.1:
version "3.4.1"
resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.4.1.tgz#714f1f8d9dde4bdfa55764ba37ef214630d80ef2"
integrity sha512-36+AdBzCL+y6qjw5Tx7HgzeGCzC81MDDgaUP8ld2zhx58HdqXGoBd+tHdrBMiyjGQs0Hxs/MLZTu/eHNJJuWPw==
js-levenshtein@^1.1.3:
version "1.1.6"
resolved "https://registry.yarnpkg.com/js-levenshtein/-/js-levenshtein-1.1.6.tgz#c6cee58eb3550372df8deb85fad5ce66ce01d59d"