summaryrefslogtreecommitdiffstats
path: root/web/js/labitrack.d/33-alerts.js
blob: d94d3c824d3b6f1df9d6989cf8db321fcd7a05e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
$(function(){
	var alerts = $('#alerts');

	λ.alert = function (tmpl, ctx) {
		var alert = $(λ.template('alert_'+tmpl, ctx));
		alerts.append(alert);
		setTimeout(function(){
			alert.alert('close');
		}, 15000);

	};
});