From d8f8d84b5ff96f3e060c6a01351bb0a5a9aad7a8 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 24 Sep 2024 16:40:03 -0500 Subject: Respond to UI actions even for unimplemented links. --- uploader/static/js/misc.js | 6 ++++++ uploader/templates/base.html | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 uploader/static/js/misc.js 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 @@ -->
  • Phenotype Data
  • Expression Data
  • Individual Data
  • RNA-Seq Data
  • Background Jobs
  • @@ -121,6 +125,7 @@ filename='jquery.min.js')}}"> + {%block javascript%}{%endblock%} -- cgit v1.2.3