From cf7ed2625456a5e619f68408f8ebfe78f443a672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Tue, 10 Jul 2012 19:51:16 +0000 Subject: upgrade to bootstrap 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Asbjørn Sloth Tønnesen --- web/js/labitrack.d/33-alerts.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 web/js/labitrack.d/33-alerts.js (limited to 'web/js/labitrack.d/33-alerts.js') diff --git a/web/js/labitrack.d/33-alerts.js b/web/js/labitrack.d/33-alerts.js new file mode 100644 index 0000000..d94d3c8 --- /dev/null +++ b/web/js/labitrack.d/33-alerts.js @@ -0,0 +1,12 @@ +$(function(){ + var alerts = $('#alerts'); + + λ.alert = function (tmpl, ctx) { + var alert = $(λ.template('alert_'+tmpl, ctx)); + alerts.append(alert); + setTimeout(function(){ + alert.alert('close'); + }, 15000); + + }; +}); -- cgit v1.2.1