Set fixed pages to be opened in a new window

pull/2789/head
Julio Montoya 7 years ago
parent c72fef5614
commit 795a50a644
  1. 1
      main/inc/lib/fixlinks.js
  2. 1
      main/lp/scorm_api.php

@ -109,6 +109,7 @@ $(document).ready(function() {
src = url+'&type=link&src='+src; src = url+'&type=link&src='+src;
src = src.replace('https', 'http'); src = src.replace('https', 'http');
$(this).attr('href', src); $(this).attr('href', src);
$(this).attr('target', '_blank');
var myAnchor = $('<a><img width="16px" src="'+iconPath+'link-external.png "/></a>').attr("href", src).attr('target', '_blank').attr('class', 'generated'); var myAnchor = $('<a><img width="16px" src="'+iconPath+'link-external.png "/></a>').attr("href", src).attr('target', '_blank').attr('class', 'generated');
$(this).after(myAnchor); $(this).after(myAnchor);
$(this).after('-'); $(this).after('-');

@ -2372,6 +2372,7 @@ function attach_glossary_into_scorm(type) {
src = url+'&type=link&src='+src; src = url+'&type=link&src='+src;
src = src.replace('https', 'http'); src = src.replace('https', 'http');
$(this).attr('href', src); $(this).attr('href', src);
$(this).attr('target', '_blank');
var myAnchor = $('<a><img width="16px" src="<?php echo Display::returnIconPath('link-external.png'); ?>"/></a>').attr("href", src).attr('target', '_blank').attr('class', 'generated'); var myAnchor = $('<a><img width="16px" src="<?php echo Display::returnIconPath('link-external.png'); ?>"/></a>').attr("href", src).attr('target', '_blank').attr('class', 'generated');
$(this).after(myAnchor); $(this).after(myAnchor);
$(this).after('-'); $(this).after('-');

Loading…
Cancel
Save