diff options
author | Michael Francis <edude03@gmail.com> | 2011-07-24 23:41:14 -0400 |
---|---|---|
committer | Michael Francis <edude03@gmail.com> | 2011-07-24 23:41:14 -0400 |
commit | dd531d3928c25b1288c9369ce2d9ec5ee6bd24d6 (patch) | |
tree | 5fd55f3e2c365f14ed677d2192595031a93cafbe /webroot/js | |
parent | c1772289909a5886af3454dae3c4cc519879bd68 (diff) | |
parent | bb06d45da99d1a551979f6f694a5bed4d02673c4 (diff) | |
download | otakuhub-dd531d3928c25b1288c9369ce2d9ec5ee6bd24d6.tar.xz |
Merge branch 'master' of git.raylu.net:otakuhub
Diffstat (limited to 'webroot/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; } |