[#263] Remove dead code, was unbound in later JS
This commit is contained in:
parent
cbb99f81a1
commit
34ffbc8e46
@ -385,15 +385,6 @@ jQuery.viewportHeight = function() {
|
|||||||
jQuery(document).ready(function($) {
|
jQuery(document).ready(function($) {
|
||||||
|
|
||||||
|
|
||||||
// header menu hovers
|
|
||||||
$("#account .drop-down").hover(function() {
|
|
||||||
$(this).addClass("open").find("ul").slideDown(animationRate);
|
|
||||||
$("#top-menu").toggleClass("open");
|
|
||||||
}, function() {
|
|
||||||
$(this).removeClass("open").find("ul").slideUp(animationRate);
|
|
||||||
$("#top-menu").toggleClass("open");
|
|
||||||
});
|
|
||||||
|
|
||||||
// show/hide header search box
|
// show/hide header search box
|
||||||
// TODO: switch to live after upgrading jQuery version. "flicker" bug.
|
// TODO: switch to live after upgrading jQuery version. "flicker" bug.
|
||||||
$("#account a.search").click(function() {
|
$("#account a.search").click(function() {
|
||||||
@ -472,9 +463,6 @@ jQuery(document).ready(function($) {
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
// header animation replacement - no animation, straight appear/hide
|
|
||||||
$("#account .drop-down").unbind('mouseenter').unbind("mouseleave"); //remove the current animated handlers
|
|
||||||
|
|
||||||
// remove .drop-down class from empty dropdowns
|
// remove .drop-down class from empty dropdowns
|
||||||
$("#account .drop-down").each(function(index) {
|
$("#account .drop-down").each(function(index) {
|
||||||
if ($(this).find("li").size() < 1) {
|
if ($(this).find("li").size() < 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user