Bootstrap accordion not working when published

Re: Bootstrap accordion not working when published

by Paul Thrippleton -
Number of replies: 0

Ok after further testing it isn't fully working; you were right Gareth.

The code I am using now is:

$PAGE->requires->jquery();
if ($_SERVER['PHP_SELF'] != "/mod/scorm/player.php") 
{
	$PAGE->requires->jquery_plugin('bootstrap', 'theme_bootswatch');
	$PAGE->requires->jquery_plugin('smooth-scroll', 'theme_bootswatch');
}else
{
	$PAGE->requires->jquery_plugin('scorm-focus', 'theme_bootswatch');
}

That works fine.  

There seems to be a problem with my smooth-scroll js plugin that is causing a conflict as I commented out all the code and added a simple console.log command into it and then on page refresh the accordion was working and there was a console.log message.

Odd that the conflict didn't report any errors in the console.