diff --git a/theme/mymobile/config.php b/theme/mymobile/config.php index 83a10a78a34..c92dc93eb7a 100644 --- a/theme/mymobile/config.php +++ b/theme/mymobile/config.php @@ -156,6 +156,7 @@ if ($thisdevice == "default" || $thisdevice == "tablet" || optional_param('mymob // Add the required JavaScript to the page $THEME->javascripts = array( 'jquery-1.6.4.min', + 'jquery-noconflict', 'custom', 'jquery.mobile-1.0', 'scrollview', @@ -167,4 +168,4 @@ $THEME->rendererfactory = 'theme_overridden_renderer_factory'; // This theme doesn't support CSS optimisation. The JQuery CSS has already been optimised in a way that // is not compatible with the CSS optimiser in Moodle. -$THEME->supportscssoptimisation = false; \ No newline at end of file +$THEME->supportscssoptimisation = false; diff --git a/theme/mymobile/javascript/jquery-noconflict.js b/theme/mymobile/javascript/jquery-noconflict.js new file mode 100644 index 00000000000..aa32286f6a3 --- /dev/null +++ b/theme/mymobile/javascript/jquery-noconflict.js @@ -0,0 +1 @@ +jQuery.noConflict(); \ No newline at end of file diff --git a/theme/mymobile/layout/embedded.php b/theme/mymobile/layout/embedded.php index 172bc3dcdaa..5a0141073e1 100644 --- a/theme/mymobile/layout/embedded.php +++ b/theme/mymobile/layout/embedded.php @@ -36,6 +36,7 @@ if ($showswatch == "light") { $databodytheme = 'c'; } $mypagetype = $PAGE->pagetype; +$bodyclasses = array(); echo $OUTPUT->doctype() ?> htmlattributes() ?>>