diff --git a/hypha/apply/funds/templates/funds/application_base.html b/hypha/apply/funds/templates/funds/application_base.html index 0ccb5ec081f24bb46c67a625db6568bde1602845..612a8b9c8520f4e8844387d61895f2ef25c6c23b 100644 --- a/hypha/apply/funds/templates/funds/application_base.html +++ b/hypha/apply/funds/templates/funds/application_base.html @@ -60,7 +60,7 @@ <script src="{% static 'js/apply/file-uploads.js' %}"></script> <script src="{% static 'js/apply/tinymce-word-count.js' %}"></script> <script src="{% static 'js/apply/submission-form-copy.js' %}"></script> - <script src="{% static 'js/apply/external-link-new-window.js' %}"></script> + <script src="{% static 'js/apply/application-form-links-new-window.js' %}"></script> {% if not show_all_group_fields %} <script src="{% static 'js/apply/form-group-toggle.js' %}"></script> {% endif %} diff --git a/hypha/static_src/src/javascript/apply/application-form-links-new-window.js b/hypha/static_src/src/javascript/apply/application-form-links-new-window.js new file mode 100644 index 0000000000000000000000000000000000000000..4cca0c08c157e60b19806684c89e023bb4330784 --- /dev/null +++ b/hypha/static_src/src/javascript/apply/application-form-links-new-window.js @@ -0,0 +1,8 @@ +(function ($) { + + 'use strict'; + + // Make links on application forms open in a new window/tab. + $('.application-form').find('a').attr('target', '_blank'); + +})(jQuery); diff --git a/hypha/static_src/src/javascript/apply/external-link-new-window.js b/hypha/static_src/src/javascript/apply/external-link-new-window.js deleted file mode 100644 index 81b9d22fe628ece018189f4816fbff9f5cc92efd..0000000000000000000000000000000000000000 --- a/hypha/static_src/src/javascript/apply/external-link-new-window.js +++ /dev/null @@ -1,8 +0,0 @@ -(function ($) { - - 'use strict'; - - // Make external links on application forms open in a new window/tab. - $('.application-form').find("a[href^='http']").attr('target', '_blank'); - -})(jQuery);