mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
unterminated JS statements
This commit is contained in:
parent
a4ee8005b5
commit
250821d5f4
@ -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"><<</button><button id="nav_prev"><</button><button id="nav_up">^</button><button id="nav_next">></button><button id="nav_skipnext">>></button></span>');
|
||||
scorm_nav_panel.render();
|
||||
|
Loading…
x
Reference in New Issue
Block a user