fix issue where Session Info page was not being refreshed after submitting or cancelling RSVPs

This commit is contained in:
Brian Smith 2014-07-29 21:32:13 -04:00
parent 051e7f8bde
commit fa7672c0e6
1 changed files with 8 additions and 10 deletions

View File

@ -174,7 +174,10 @@
$('.call-to-action').html('Tell the session organizer if you can no longer join this session');
$btnAction.html('CANCEL RSVP');
$btnAction.click(function(e) {
ui.launchRsvpCancelDialog(musicSessionId, rsvp.id);
ui.launchRsvpCancelDialog(musicSessionId, rsvp.id)
.one(EVENTS.DIALOG_CLOSED, function() {
location.reload();
});
});
}
}
@ -184,7 +187,10 @@
$('.call-to-action').html("Tell the session organizer you'd like to play in this session");
$btnAction.html('RSVP NOW!');
$btnAction.click(function(e) {
ui.launchRsvpSubmitDialog(musicSessionId);
ui.launchRsvpSubmitDialog(musicSessionId)
.one(EVENTS.RSVP_SUBMITTED, function() {
location.reload();
})
});
}
})
@ -201,14 +207,6 @@
});
addLatencyDetails();
$(document).on(EVENTS.RSVP_SUBMITTED, function() {
location.reload();
});
$(document).on(EVENTS.RSVP_CANCELED, function() {
location.reload();
});
}
this.initialize = initialize;