diff --git a/opentech/apply/funds/templates/funds/applicationsubmission_admin_detail.html b/opentech/apply/funds/templates/funds/applicationsubmission_admin_detail.html index cd4d2e13566a70e27b6f4d527e0ab473fe9f5a5c..47380b0e4c80c68a41c39e3ca68474a91c73dc85 100644 --- a/opentech/apply/funds/templates/funds/applicationsubmission_admin_detail.html +++ b/opentech/apply/funds/templates/funds/applicationsubmission_admin_detail.html @@ -43,4 +43,5 @@ <script src="{% static 'js/apply/tabs.js' %}"></script> <script src="{% static 'js/apply/toggle-actions-panel.js' %}"></script> <script src="{% static 'js/apply/toggle-reviewers.js' %}"></script> + <script src="{% static 'js/apply/toggle-sidebar.js' %}"></script> {% endblock %} diff --git a/opentech/static_src/src/javascript/apply/toggle-sidebar.js b/opentech/static_src/src/javascript/apply/toggle-sidebar.js new file mode 100644 index 0000000000000000000000000000000000000000..503217d96d0c4867c45a5e4da1f3b207c0d1f8ba --- /dev/null +++ b/opentech/static_src/src/javascript/apply/toggle-sidebar.js @@ -0,0 +1,13 @@ +(function ($) { + + 'use strict'; + + var $sidebar = $('.sidebar'); + $('.tabs__container').append('<a class="tab__item tab__item--right js-sidebar-toggle" href="#">Toggle sidebar</a>'); + $('.js-sidebar-toggle').click(function (e) { + e.preventDefault(); + $sidebar.toggleClass('hidden'); + }); + +})(jQuery); +