diff options
author | Chad Kieffer <ckieffer@gmail.com> | 2009-09-26 18:34:04 -0600 |
---|---|---|
committer | Chad Kieffer <ckieffer@gmail.com> | 2009-09-26 18:34:04 -0600 |
commit | 8060a8a6594c8bc089098329c52bd1d42a0c7adb (patch) | |
tree | aca0c74dca2d4e26249d12bb5fbdc1889a38b72f /themes/wind/js | |
parent | 484dd7abaa03009c66edad50ce60dd872a80ae92 (diff) |
Removed unused toggleClass()
Diffstat (limited to 'themes/wind/js')
-rw-r--r-- | themes/wind/js/ui.init.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/wind/js/ui.init.js b/themes/wind/js/ui.init.js index abf79b81..cb765552 100644 --- a/themes/wind/js/ui.init.js +++ b/themes/wind/js/ui.init.js @@ -74,13 +74,14 @@ $(document).ready(function() { $(this).addClass("gHoverItem"); // Initialize the contextual menu $(this).gallery_context_menu(); + // Set the hover item's height $(this).height("auto"); var context_menu = $(this).find(".gContextMenu"); var adj_height = $(this).height() + context_menu.height(); $(this).height(adj_height); }, function() { - // Reset item height, position, and z-index + // Reset item height and position if ($(this).next().height()) { var sib_height = $(this).next().height(); } else { @@ -89,7 +90,6 @@ $(document).ready(function() { if ($.browser.msie && $.browser.version >= 8) { sib_height = sib_height + 1; } - $(this).toggleClass("gHoverItem"); $(this).css("height", sib_height); $(this).css("position", "relative"); $(this).css("top", 0).css("left", 0); |