Mercurial > public > sg101
comparison media/js/gcalendar_edit.js @ 1:dbd703f7d63a
Initial import of sg101 stuff from private repository.
author | gremmie |
---|---|
date | Mon, 06 Apr 2009 02:43:12 +0000 |
parents | |
children | b43e1288ff80 |
comparison
equal
deleted
inserted
replaced
0:900ba3c7b765 | 1:dbd703f7d63a |
---|---|
1 $(document).ready(function() { | |
2 $('.gcal-del').click(function () { | |
3 if (confirm('Really delete this event?')) { | |
4 var id = this.id; | |
5 if (id.match(/gcal-(\d+)/)) { | |
6 $.post('/calendar/delete/', { id : RegExp.$1 }, function (id) { | |
7 var id = '#gcal-' + id; | |
8 $(id).parents('li').hide('normal'); | |
9 }, 'text'); | |
10 } | |
11 } | |
12 return false; | |
13 }); | |
14 }); |