Skip to content

Commit 75d0caf

Browse files
committed
Trigger change event on example link clicks
1 parent e21a4ff commit 75d0caf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/resources/static/js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ requirejs.config({
3333
require(['jquery'],
3434
function ($) {
3535
$(".example").click(function(e) {
36-
$("#url").val($(this).attr("href"));
36+
$("#url").val($(this).attr("href")).trigger("change");
3737
e.preventDefault();
3838
});
3939
});

src/main/resources/templates/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ <h2>Workflow URL</h2>
5151
<p>Provide a Github, Gitlab or Git repository link to the workflow here</p>
5252
<div class="alert alert-grey">
5353
<strong>Don't know what to view?</strong> Try these from <i>common-workflow-language/workflows</i>:
54-
<a class="example" href="/workflows/github.com/common-workflow-language/workflows/tree/master/workflows/compile/compile1.cwl">compile</a>,
55-
<a class="example" href="/workflows/github.com/common-workflow-language/workflows/tree/master/workflows/make-to-cwl/dna.cwl">make-to-cwl</a>,
56-
<a class="example" href="/workflows/github.com/common-workflow-language/workflows/tree/master/workflows/lobSTR/lobSTR-workflow.cwl">lobSTR</a>,
57-
<a class="example" href="/workflows/github.com/common-workflow-language/workflows/tree/master/workflows/scidap/bam-genomecov-bigwig-rna-dutp.cwl">scidap</a>
54+
<a class="example" href="https://github.com/common-workflow-language/workflows/tree/master/workflows/compile/compile1.cwl">compile</a>,
55+
<a class="example" href="https://github.com/common-workflow-language/workflows/tree/master/workflows/make-to-cwl/dna.cwl">make-to-cwl</a>,
56+
<a class="example" href="https://github.com/common-workflow-language/workflows/tree/master/workflows/lobSTR/lobSTR-workflow.cwl">lobSTR</a>,
57+
<a class="example" href="https://github.com/common-workflow-language/workflows/tree/master/workflows/scidap/bam-genomecov-bigwig-rna-dutp.cwl">scidap</a>
5858
or <a href="/workflows">explore the collection</a>
5959
</div>
6060
<form id="add" action="#" th:action="@{/workflows}" th:object="${workflowForm}" method="POST">

0 commit comments

Comments
 (0)