summaryrefslogtreecommitdiffstats
path: root/webroot/js/functions.js
blob: 510b0cf9da89670f2f2445fd7cd36197845a3db8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
jQuery(document).ready(function($) {
	var login = $("a[href='/login']");
	login.attr('href', '#login');
	login.fancybox();

	$('.tooltip').tipsy({fade: true});
	$('.tooltip.north').tipsy({fade: true, gravity: 's'});
	$('.tooltip.east').tipsy({fade: true, gravity: 'w'});
	$('.tooltip.west').tipsy({fade: true, gravity: 'e'});
	$('form [title]').tipsy({fade: true, trigger: 'focus', gravity: 'w'});

	setTimeout(function() {
		$(".flash-message").fadeOut("slow", function () {
			$(".flash-message").remove();
		});
	}, 2000);
});