jQuery now in library/js. Patched to load as H5P.jQuery

namespaces
Frank Ronny Larsen 2013-02-06 18:53:39 +01:00
parent 7db3def124
commit 90bc40fcc4
2 changed files with 14 additions and 8 deletions

View File

@ -90,11 +90,7 @@ Array.prototype.contains = function (needle) {
return (this.indexOf(needle) > -1); return (this.indexOf(needle) > -1);
}; };
// We want our own jQuery version, regardless of what the containing page is // Finally, we want to run init when document is ready.
// up to. H5P.jQuery(document).ready(function(){
// TODO: Does not work properly in <IE10 H5P.init();
(function () { });
document.writeln('<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>');
document.writeln('<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>');
document.writeln('<script>H5P.jQuery = jQuery.noConflict(true); H5P.jQuery(document).ready(function(){H5P.init();});</script>');
})();

10
js/jquery.js vendored Normal file

File diff suppressed because one or more lines are too long