MDL-22951 - fix JS issue in IE when TOC set to hidden by default.
This commit is contained in:
@@ -222,7 +222,11 @@ function SCORMapi1_2() {
|
||||
hnode = scorm_tree_node.getNodeByIndex(hidx);
|
||||
if (hnode) {
|
||||
hnode.highlight();
|
||||
hnode.focus();
|
||||
scorm_layout_widget = YAHOO.widget.Layout.getLayoutById('scorm_layout');
|
||||
var left = scorm_layout_widget.getUnitByPosition('left');
|
||||
if (left.expanded) {
|
||||
hnode.focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+4
-1
@@ -115,7 +115,10 @@ M.mod_scorm.init = function(Y, hide_nav, hide_toc, toc_title, window_name, windo
|
||||
|
||||
scorm_resize_frame();
|
||||
|
||||
scorm_current_node.focus();
|
||||
var left = scorm_layout_widget.getUnitByPosition('left');
|
||||
if (left.expanded) {
|
||||
scorm_current_node.focus();
|
||||
}
|
||||
if (scorm_hide_nav == false) {
|
||||
scorm_fixnav();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user