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

	$('.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);
});