Fixing ie8 html errors.

1.9.x
Julio Montoya 12 years ago
parent 1153458bb9
commit 5afca3edb3
  1. 2
      main/newscorm/lp_nav.php
  2. 23
      main/newscorm/lp_view.php
  3. 11
      main/newscorm/scorm_api.php

@ -23,7 +23,7 @@ require_once 'scorm.class.php';
require_once 'aicc.class.php';
$htmlHeadXtra[] = '<script>
var chamilo_xajax_handler = window.parent.oxajax;
var chamilo_xajax_handler = window.parent.oxajax;
</script>';
$progress_bar = '';

@ -75,17 +75,17 @@ $(document).ready(function() {
$("div#log_content_cleaner").bind("click", function() {
$("div#log_content").empty();
});
jQuery("video:not(.skip), audio:not(.skip)").mediaelementplayer();
//jQuery("video:not(.skip), audio:not(.skip)").mediaelementplayer();
});
var chamilo_xajax_handler = window.oxajax;
</script>';
if ($_SESSION['oLP']->mode == 'embedframe' || $_SESSION['oLP']->get_hide_toc_frame()==1 ) {
$htmlHeadXtra[] = '<script>
$(document).ready(function() {
toogle_minipanel();
});
</script>';
$(document).ready(function() {
toogle_minipanel();
});
</script>';
}
//Impress js
@ -477,10 +477,15 @@ if ($is_allowed_to_edit) {
<?php
}
}
?>
}
window.onload = updateContentHeight;
window.onresize = updateContentHeight;
?>}
$(document).ready(function() {
updateContentHeight();
$(window).resize(function() {
updateContentHeight();
});
});
//window.onload = updateContentHeight;
//window.onresize = updateContentHeight;
</script>
<?php
// Restore a global setting.

@ -268,7 +268,10 @@ function LMSInitialize() {
url: "lp_ajax_initialize.php",
data: params,
dataType: 'script',
async: false
async: false,
success:function(data) {
jQuery("video:not(.skip), audio:not(.skip)").mediaelementplayer();
}
});
olms.lms_initialized = 1;
@ -294,7 +297,7 @@ function LMSInitialize() {
logit_scorm('LMSInitialize() with params: '+log);
if (olms.lms_lp_type == 1 || olms.lms_item_type == 'asset' || olms.lms_item_type == 'document') {
if (olms.lms_lp_type == 1 || olms.lms_item_type == 'asset' || olms.lms_item_type == 'document') {
xajax_start_timer();
}
@ -1482,10 +1485,6 @@ function switch_item(current_item, next_item){
}
});
return true;
}

Loading…
Cancel
Save