Mercurial > public > sg101
annotate media/js/gcalendar_edit.js @ 85:531fcc342a03
Forums: put the forum indices under the url forums/forum to avoid clashing with other functions. Modified the forum index template to have a link to the topic creator's profile.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 30 Aug 2009 19:58:42 +0000 (2009-08-30) |
parents | dbd703f7d63a |
children | b43e1288ff80 |
rev | line source |
---|---|
gremmie@1 | 1 $(document).ready(function() { |
gremmie@1 | 2 $('.gcal-del').click(function () { |
gremmie@1 | 3 if (confirm('Really delete this event?')) { |
gremmie@1 | 4 var id = this.id; |
gremmie@1 | 5 if (id.match(/gcal-(\d+)/)) { |
gremmie@1 | 6 $.post('/calendar/delete/', { id : RegExp.$1 }, function (id) { |
gremmie@1 | 7 var id = '#gcal-' + id; |
gremmie@1 | 8 $(id).parents('li').hide('normal'); |
gremmie@1 | 9 }, 'text'); |
gremmie@1 | 10 } |
gremmie@1 | 11 } |
gremmie@1 | 12 return false; |
gremmie@1 | 13 }); |
gremmie@1 | 14 }); |