Fix js links BT#10217

1.9.x
Julio 10 years ago
parent 37adc44f91
commit 25d6821db6
  1. 5
      main/inc/lib/javascript/fixlinks.js
  2. 7
      main/newscorm/scorm_api.php

@ -91,6 +91,11 @@ $(document).ready(function() {
return true; return true;
} }
var hasJs = $(this).attr('href').indexOf('javascript');
if (hasJs > 0) {
return true;
}
var src = $(this).attr('href'); var src = $(this).attr('href');
src = url+'&type=link&src='+src; src = url+'&type=link&src='+src;
src = src.replace('https', 'http'); src = src.replace('https', 'http');

@ -2225,13 +2225,16 @@ function attach_glossary_into_scorm(type) {
return true; return true;
} }
var hasLocalhost = $(this).attr('href').indexOf(location.host); var hasLocalhost = $(this).attr('href').indexOf(location.host);
if (hasLocalhost > 0) { if (hasLocalhost > 0) {
return true; return true;
} }
var hasJs = $(this).attr('href').indexOf('javascript');
if (hasJs > 0) {
return true;
}
var src = $(this).attr('href'); var src = $(this).attr('href');
src = url+'&type=link&src='+src; src = url+'&type=link&src='+src;
src = src.replace('https', 'http'); src = src.replace('https', 'http');

Loading…
Cancel
Save