agenda: hiding the rendez-vous update form when updating the periodical rendez-vous

Closes #3187
This commit is contained in:
Serghei Mihai 2013-07-17 15:05:39 +02:00
parent 7af04d52f4
commit deacfdc562
1 changed files with 4 additions and 0 deletions

View File

@ -133,6 +133,10 @@ function enable_events(base) {
});
$(base).on('click', '.update-periodic-event', function () {
$('.ui-icon-closethick').click();
// remove the form from previous hidden layer in order to prevent two
// elements with 'id_date' id on the page
$(this).parent().remove();
var id = $(this).data('id');
var delete_url = $(this).data('delete-url');
generic_ajaxform_dialog('update-periodic-event/' + id,