unterminated JS statements

This commit is contained in:
Petr Skoda 2010-09-18 13:32:06 +00:00
parent a4ee8005b5
commit 250821d5f4

View File

@ -83,7 +83,7 @@ M.mod_scorm.init = function(Y, hide_nav, hide_toc, toc_title, window_name, launc
var api_url = M.cfg.wwwroot + '/mod/scorm/api.php?' + node.title;
document.getElementById('external-scormapi').src = api_url;
}
var content = new YAHOO.util.Element('scorm_content');
try {
// first try IE way - it can not set name attribute later
@ -100,7 +100,7 @@ M.mod_scorm.init = function(Y, hide_nav, hide_toc, toc_title, window_name, launc
}
else {
var obj = document.createElement('<iframe id="scorm_object" src="'+url_prefix + node.title+'">');
}
}
// fudge IE7 to redraw the screen
if (YAHOO.env.ua.ie > 5 && YAHOO.env.ua.ie < 8) {
obj.attachEvent("onload", scorm_resize_parent);
@ -160,7 +160,7 @@ M.mod_scorm.init = function(Y, hide_nav, hide_toc, toc_title, window_name, launc
if (ifr) {
ifr.detachEvent("onload", scorm_resize_parent);
}
}
};
var scorm_resize_layout = function(alsowidth) {
if (window_name) {
@ -359,7 +359,7 @@ M.mod_scorm.init = function(Y, hide_nav, hide_toc, toc_title, window_name, launc
scorm_nav_panel = new YAHOO.widget.Panel('scorm_navpanel', { visible:true, draggable:true, close:false, xy: [250, 450],
autofillheight: "body"} );
scorm_nav_panel.setHeader(M.str.scorm.navigation);
//TODO: make some better&accessible buttons
scorm_nav_panel.setBody('<span id="scorm_nav"><button id="nav_skipprev">&lt;&lt;</button><button id="nav_prev">&lt;</button><button id="nav_up">^</button><button id="nav_next">&gt;</button><button id="nav_skipnext">&gt;&gt;</button></span>');
scorm_nav_panel.render();