From 8b8c3b2698bca4f50a4430effd0a5e0e25e0fa22 Mon Sep 17 00:00:00 2001 From: Pacman Ghost Date: Mon, 14 Nov 2022 21:49:08 +1100 Subject: [PATCH] Fixed how external links in the help are opened. --- vasl_templates/webapp/static/help/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vasl_templates/webapp/static/help/main.js b/vasl_templates/webapp/static/help/main.js index 59725db..1292ed7 100644 --- a/vasl_templates/webapp/static/help/main.js +++ b/vasl_templates/webapp/static/help/main.js @@ -20,7 +20,7 @@ $(document).ready( function() { $( "a" ).each( function() { $(this).click( function(evt) { var url = $(this).attr( "href" ) ; - if ( url[0] !== "#" && url.substring(0,16) !== "http://localhost" && url.substring(0,16) !== "http://127.0.0.1" && url.indexOf( "code.pacman-ghost.com" ) === -1 ) { + if ( url[0] !== "#" && url.substring(0,16) !== "http://localhost" && url.substring(0,16) !== "http://127.0.0.1" ) { window.open( url ) ; evt.preventDefault() ; return false ;