From d86d80c4d80094cefc9e59f2a077ad3c6d6653f7 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 18 Feb 2012 06:44:52 +0000 Subject: [PATCH] reapplying changes to make firefox 3.6 work --- static/js/pandora.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/static/js/pandora.js b/static/js/pandora.js index b76eefd4..e641a03a 100644 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -130,11 +130,14 @@ appPanel } function loadOxJS(callback) { - var script = document.createElement('script'); + var head = document.head + || document.getElementsByTagName('head')[0] + || document.documentElement, + script = document.createElement('script'); script.onload = callback; script.src = '/static/oxjs/dev/Ox.js'; script.type = 'text/javascript'; - document.head.appendChild(script); + head.appendChild(script); } function loadOxUI(callback) { @@ -373,7 +376,7 @@ appPanel .attr({ src: Ox.PATH + 'Ox.UI/png/browser' + browser.name.replace(' ', '') + '128.png' }) - .css({width: '32px', height: '32px', margin: '4px'}) + .css({width: '32px', height: '32px', border: 0, margin: '4px'}) ) .appendTo($images); });