Big Bang Burger Bar

General Community => SMF Forum => Topic started by: Zarniwoop on 14 December 2008, 20:00:34



Title: Enterprise Theme - "done, but with errors on the page" seen on Browsers
Post by: Zarniwoop on 14 December 2008, 20:00:34
Ok with some help from a forum member on my site who supplied the code mods Nomad3k (http://bigbangburgerbar.co.uk/Forum/index.php?action=profile;u=22) (thanks)

I think I have tracked down the problem and have a fix:

original code in default\Display.template.php:

Code:
	if (empty($settings['use_tabs']))
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
document.getElementById("quickmodSubmit").style.display = "none";
// ]]></script>';

echo '
</form>';


Replace with this code:

Code:
	if (empty($settings['use_tabs']))
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
    var scriptfix = document.getElementById("quickmodSubmit");
    if (scriptfix != null)
      scriptfix.style.display = "none";
// ]]></script>';

echo '
</form>';