LP: Update iOS link when iframe load - refs BT#20284

pull/4430/head
Angel Fernando Quiroz Campos 3 years ago
parent fe6a2d0805
commit 0bfe6c956d
  1. 3
      main/template/default/learnpath/view.tpl

@ -243,6 +243,7 @@
);
$('<a>')
.attr({
'id': 'btn-content-new-tab',
'target': '_blank',
'href': '{{ iframe_src }}'
})
@ -326,6 +327,8 @@
$('#learning_path_right_zone #lp-view-content iframe').on('load', function () {
$('.lp-view-tabs a[href="#lp-view-content"]').tab('show');
$('.lp-view-tabs').animate({opacity: 1}, 500);
document.getElementById('btn-content-new-tab').href = this.src;
});
{% if lp_mode == 'embedded' %}

Loading…
Cancel
Save