diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-17 05:11:53 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-17 05:11:53 +0000 |
commit | ea624090bcbab6c74435a2e2bf4fed8b05ac5be1 (patch) | |
tree | f5c322dd79296ed826308302a7f5f57361f61443 /lib | |
parent | 04cd880273aadd127a89e2cca89cb055fd534a9e (diff) | |
download | ampache-ea624090bcbab6c74435a2e2bf4fed8b05ac5be1.tar.gz ampache-ea624090bcbab6c74435a2e2bf4fed8b05ac5be1.tar.bz2 ampache-ea624090bcbab6c74435a2e2bf4fed8b05ac5be1.zip |
some minor tweakage to make ajaxie stuff kind of work in IE
Diffstat (limited to 'lib')
-rw-r--r-- | lib/javascript-base.js | 17 | ||||
-rw-r--r-- | lib/rating.lib.php | 2 |
2 files changed, 1 insertions, 18 deletions
diff --git a/lib/javascript-base.js b/lib/javascript-base.js index 7dfdf1c3..d0684a56 100644 --- a/lib/javascript-base.js +++ b/lib/javascript-base.js @@ -98,20 +98,3 @@ function popup_art(url) { newwindow=window.open(url, "ampache_art", "menubar=no,toolbar=no,location=no,directories=no"); if (window.focus) {newwindow.focus()} } - -// function needed for IE. attaches mouseover/out events to give/remove css class .sfhover (fake hover) -sfHover = function(navlist) { -var sfEls = document.getElementById("navlist").getElementsByTagName("LI"); -for (var i=0; i <sfEls.length; i++) { - sfEls[i].onmouseover=function() { - this.className+=" sfhover"; - } - sfEls[i].onmouseout=function() { - this.className=this.className.replace(new RegExp("sfhover\\b"), ""); - } -} // end for -} // end function for sfHover - -if (window.attachEvent) window.attachEvent("onload", sfHover); - - diff --git a/lib/rating.lib.php b/lib/rating.lib.php index 118efc4d..0e490ee2 100644 --- a/lib/rating.lib.php +++ b/lib/rating.lib.php @@ -36,7 +36,7 @@ function show_rating_static($object_id,$type) { $rating = new Rating($object_id,$type); - include(conf('prefix') . '/templates/show_object_rating_static.inc.php'); + require Config::get('prefix') . '/templates/show_object_rating_static.inc.php'; } // show_rating_static |