Mercurial > public > sg101
view media/js/gcalendar_edit.js @ 13:777451a98f9d
Shoutbox work: shouts now have absolute URLs. Shouts can now be flagged as abuse. Minor tweak to breadcrumbs css. Added flag date to comments admin.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 16 Apr 2009 02:00: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; }); });