Mercurial > public > sg101
view media/js/gcalendar_edit.js @ 62:3767a6bc8d85
Make the donations debug business name be found in the local_settings as it can change frequently.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 27 Jun 2009 21:30:18 +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; }); });