summaryrefslogtreecommitdiffstats
path: root/webroot/js
diff options
context:
space:
mode:
authorMichael Francis <edude03@gmail.com>2011-07-17 20:38:31 -0400
committerMichael Francis <edude03@gmail.com>2011-07-17 20:38:31 -0400
commitc9994190d2ba584e1eb95b6b47ff586da7b0f29f (patch)
treeff4d02327f8e988925036f7406c760dfba8791d3 /webroot/js
parent7be960630a8c0b4dab94245c73453b22db3f305e (diff)
parent2baaf56e140a06eed8fe0b1d28d744d34a537d49 (diff)
downloadotakuhub-c9994190d2ba584e1eb95b6b47ff586da7b0f29f.tar.xz
Merge branch 'master' of git.raylu.net:otakuhub
Diffstat (limited to 'webroot/js')
-rw-r--r--webroot/js/functions.js18
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;
+}