Mercurial > public > sg101
view media/js/gcalendar_edit.js @ 12:f408971657b9
Changed the shoutbox: posts are now made by Ajax. The smiley farm is loaded only on demand. jQuery is now in the base template. May add scrolling later.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 15 Apr 2009 01:13:17 +0000 |
parents | dbd703f7d63a |
children | b43e1288ff80 |
line wrap: on
line source
$(document).ready(function() { $('.gcal-del').click(function () { if (confirm('Really delete this event?')) { var id = this.id; if (id.match(/gcal-(\d+)/)) { $.post('/calendar/delete/', { id : RegExp.$1 }, function (id) { var id = '#gcal-' + id; $(id).parents('li').hide('normal'); }, 'text'); } } return false; }); });