Skip to content
Snippets Groups Projects
Commit 96c7080f authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Make all link on application forms open in new window/tab.

parent 4ba5c8f9
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<script src="{% static 'js/apply/file-uploads.js' %}"></script> <script src="{% static 'js/apply/file-uploads.js' %}"></script>
<script src="{% static 'js/apply/tinymce-word-count.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/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 %} {% if not show_all_group_fields %}
<script src="{% static 'js/apply/form-group-toggle.js' %}"></script> <script src="{% static 'js/apply/form-group-toggle.js' %}"></script>
{% endif %} {% endif %}
......
(function ($) {
'use strict';
// Make links on application forms open in a new window/tab.
$('.application-form').find('a').attr('target', '_blank');
})(jQuery);
(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);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment