comparison gcalendar/static/js/gcalendar_edit.js @ 1094:110bbc78a482

GCalendar V3 conversion in progress.
author Brian Neal <bgneal@gmail.com>
date Sun, 29 May 2016 23:09:23 -0500
parents ee87ea74d46b
children
comparison
equal deleted inserted replaced
1093:1ac847818aea 1094:110bbc78a482
7 url: '/calendar/delete/', 7 url: '/calendar/delete/',
8 type: 'POST', 8 type: 'POST',
9 data: { id : RegExp.$1 }, 9 data: { id : RegExp.$1 },
10 dataType: 'text', 10 dataType: 'text',
11 success: function (id) { 11 success: function (id) {
12 var id = '#gcal-' + id; 12 var rowId = '#gcal-row-' + id;
13 $(id).parents('li').hide('normal'); 13 $(rowId).fadeOut(800);
14 }, 14 },
15 error: function (xhr, textStatus, ex) { 15 error: function (xhr, textStatus, ex) {
16 alert('Oops, an error occurred. ' + xhr.statusText + ' - ' + 16 alert('Oops, an error occurred. ' + xhr.statusText + ' - ' +
17 xhr.responseText); 17 xhr.responseText);
18 } 18 }