Fixed how external links in the help are opened.

master
Pacman Ghost 1 year ago
parent 51a5bcee90
commit 8b8c3b2698
  1. 2
      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 ;

Loading…
Cancel
Save