diff options
author | raylu <raylu@mixpanel.com> | 2011-07-17 17:35:41 -0700 |
---|---|---|
committer | raylu <raylu@mixpanel.com> | 2011-07-17 17:35:41 -0700 |
commit | 2baaf56e140a06eed8fe0b1d28d744d34a537d49 (patch) | |
tree | 1f410c05a51bf46c8970f418c40e2660fa11bfbf /webroot/js | |
parent | 384834c9fb85d3a408c60dd38e8d1474116793ad (diff) | |
download | otakuhub-2baaf56e140a06eed8fe0b1d28d744d34a537d49.tar.xz |
cast (chars/VAs) on anime view page
there isn't yet a views/anime/cast.html.php for non-JS, but the
controller is set up for it
Diffstat (limited to 'webroot/js')
-rw-r--r-- | webroot/js/functions.js | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/webroot/js/functions.js b/webroot/js/functions.js index 510b0cf..86f3f3c 100644 --- a/webroot/js/functions.js +++ b/webroot/js/functions.js @@ -10,8 +10,22 @@ jQuery(document).ready(function($) { $('form [title]').tipsy({fade: true, trigger: 'focus', gravity: 'w'}); setTimeout(function() { - $(".flash-message").fadeOut("slow", function () { - $(".flash-message").remove(); + $('.flash-message').fadeOut('slow', function () { + $('.flash-message').remove(); }); }, 2000); }); + +function toggleCast() { + var table = $('#cast table'); + if (table.css('display') == 'inline') { + table.css('display', 'none'); + $('#cast > p > a').text('Cast ↓'); + $('#castlink').css('display', 'none'); + } else { + table.css('display', 'inline'); + $('#cast > p > a').text('Cast ↑'); + $('#castlink').css('display', 'inline'); + } + return false; +} |