diff options
author | raylu <raylu@mixpanel.com> | 2011-07-24 20:05:13 -0700 |
---|---|---|
committer | raylu <raylu@mixpanel.com> | 2011-07-24 20:05:13 -0700 |
commit | db1e0926ca3055f49234dacb168b2122c1da9191 (patch) | |
tree | 11725d1c3feb736a22b8c7b81c917c26478a2d2a /webroot/js/functions.js | |
parent | c62f4d8fb6fb52f10c0c8f16c6faf5d1dd87c2d1 (diff) | |
download | otakuhub-db1e0926ca3055f49234dacb168b2122c1da9191.tar.xz |
add sweet cast table animations
Diffstat (limited to 'webroot/js/functions.js')
-rw-r--r-- | webroot/js/functions.js | 12 |
1 files changed, 6 insertions, 6 deletions
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; } |