diff options
author | Michael Francis <edude03@gmail.com> | 2011-07-17 20:38:31 -0400 |
---|---|---|
committer | Michael Francis <edude03@gmail.com> | 2011-07-17 20:38:31 -0400 |
commit | c9994190d2ba584e1eb95b6b47ff586da7b0f29f (patch) | |
tree | ff4d02327f8e988925036f7406c760dfba8791d3 /webroot/js/functions.js | |
parent | 7be960630a8c0b4dab94245c73453b22db3f305e (diff) | |
parent | 2baaf56e140a06eed8fe0b1d28d744d34a537d49 (diff) | |
download | otakuhub-c9994190d2ba584e1eb95b6b47ff586da7b0f29f.tar.xz |
Merge branch 'master' of git.raylu.net:otakuhub
Diffstat (limited to 'webroot/js/functions.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; +} |