aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-24 16:40:03 -0500
committerFrederick Muriuki Muriithi2024-09-24 16:40:03 -0500
commitd8f8d84b5ff96f3e060c6a01351bb0a5a9aad7a8 (patch)
treebccf002378f3d5a47931abc74bb1128427849794
parenta1106b2e3e6e5aa4d2781955721dddacf825df68 (diff)
downloadgn-uploader-d8f8d84b5ff96f3e060c6a01351bb0a5a9aad7a8.tar.gz
Respond to UI actions even for unimplemented links.
-rw-r--r--uploader/static/js/misc.js6
-rw-r--r--uploader/templates/base.html5
2 files changed, 11 insertions, 0 deletions
diff --git a/uploader/static/js/misc.js b/uploader/static/js/misc.js
new file mode 100644
index 0000000..cf7b39e
--- /dev/null
+++ b/uploader/static/js/misc.js
@@ -0,0 +1,6 @@
+"Miscellaneous functions and event-handlers"
+
+$(".not-implemented").click((event) => {
+ event.preventDefault();
+ alert("This feature is not implemented yet. Please bear with us.");
+});
diff --git a/uploader/templates/base.html b/uploader/templates/base.html
index e3d3e11..b297669 100644
--- a/uploader/templates/base.html
+++ b/uploader/templates/base.html
@@ -69,18 +69,22 @@
-->
<li {%if activemenu=="phenotypes"%}class="activemenu"{%endif%}>
<a href="#"
+ class="not-implemented"
title="Upload phenotype data.">Phenotype Data</a></li>
<li {%if activemenu=="expression-data"%}class="activemenu"{%endif%}>
<a href="{{url_for('species.populations.expression-data.index')}}"
title="Upload expression data.">Expression Data</a></li>
<li {%if activemenu=="individuals"%}class="activemenu"{%endif%}>
<a href="#"
+ class="not-implemented"
title="Upload individual data.">Individual Data</a></li>
<li {%if activemenu=="rna-seq"%}class="activemenu"{%endif%}>
<a href="#"
+ class="not-implemented"
title="Upload RNA-Seq data.">RNA-Seq Data</a></li>
<li {%if activemenu=="async-jobs"%}class="activemenu"{%endif%}>
<a href="#"
+ class="not-implemented"
title="View and manage the backgroud jobs you have running">
Background Jobs</a></li>
</ul>
@@ -121,6 +125,7 @@
filename='jquery.min.js')}}"></script>
<script src="{{url_for('base.bootstrap',
filename='js/bootstrap.min.js')}}"></script>
+ <script type="text/javascript" src="/static/js/misc.js"></script>
{%block javascript%}{%endblock%}
</body>