summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-07-24 20:05:13 -0700
committerraylu <raylu@mixpanel.com>2011-07-24 20:05:13 -0700
commitdb1e0926ca3055f49234dacb168b2122c1da9191 (patch)
tree11725d1c3feb736a22b8c7b81c917c26478a2d2a
parentc62f4d8fb6fb52f10c0c8f16c6faf5d1dd87c2d1 (diff)
downloadotakuhub-db1e0926ca3055f49234dacb168b2122c1da9191.tar.xz
add sweet cast table animations
-rw-r--r--webroot/js/functions.js12
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;
}