MDL-22951 - fix JS issue in IE when TOC set to hidden by default.

This commit is contained in:
Piers Harding
2010-07-23 07:03:26 +00:00
parent 267aff7f79
commit a188aa4943
2 changed files with 9 additions and 2 deletions
+5 -1
View File
@@ -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
View File
@@ -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();
}