From db1e0926ca3055f49234dacb168b2122c1da9191 Mon Sep 17 00:00:00 2001 From: raylu Date: Sun, 24 Jul 2011 20:05:13 -0700 Subject: add sweet cast table animations --- webroot/js/functions.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'webroot/js/functions.js') diff --git a/webroot/js/functions.js b/webroot/js/functions.js index 5f7d7ae..19cef9b 100644 --- a/webroot/js/functions.js +++ b/webroot/js/functions.js @@ -18,14 +18,14 @@ jQuery(document).ready(function($) { function toggleCast() { var table = $('#cast table'); - if (table.css('display') == 'block') { - table.css('display', 'none'); - $('#cast > p > a').text('Cast ↓'); - $('#castlink').css('display', 'none'); - } else { - table.css('display', 'block'); + if (table.css('display') == 'none') { + table.show(500); $('#cast > p > a').text('Cast ↑'); $('#castlink').css('display', 'block'); + } else { + table.hide(500); + $('#cast > p > a').text('Cast ↓'); + $('#castlink').css('display', 'none'); } return false; } -- cgit v1.2.3