Fix fade effect when the iframe load - refs BT#9901 #TMI

1.10.x
Angel Fernando Quiroz Campos 11 years ago
parent ff7ee35916
commit ea6fbe0407
  1. 26
      main/inc/lib/javascript/jquery.lp_minipanel.js

@ -24,24 +24,16 @@ $(document).ready(function() {
});
// effects items scorm content
$('.scorm_item_normal').click(function() {
$('#learning_path_right_zone').fadeOut(300);
setTimeout(function(){
$('#learning_path_right_zone').fadeIn(300);
},300);
});
$('.scorm_item_normal, .scorm-previous, .scorm-next').on('click', function () {
$('#learning_path_right_zone').fadeOut('slow');
$('.scorm-previous').click(function() {
$('#learning_path_right_zone').fadeOut(300);
setTimeout(function(){
$('#learning_path_right_zone').fadeIn(300);
},300);
});
var loadLearningPathRigthZone = function () {
$('#learning_path_right_zone').fadeIn(100);
$('.scorm-next').click(function() {
$('#learning_path_right_zone').fadeOut(300);
setTimeout(function(){
$('#learning_path_right_zone').fadeIn(300);
},300);
$('#learning_path_right_zone iframe').off('load', loadLearningPathRigthZone);
};
$('#learning_path_right_zone iframe').on('load', loadLearningPathRigthZone);
});
});

Loading…
Cancel
Save