diff options
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; } |