Mercurial > public > sg101
view media/js/gcalendar_edit.js @ 56:9bfe07c26c78
Fix a trailing comma in the auto-complete widget's generated javascript.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 23 Jun 2009 00:41:57 +0000 (2009-06-23) |
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; }); });