$(document).ready(function(){
$('.modal-id-here').on('hide.bs.modal', function () {
$('.modal-id-here').removeData();
});
});
worked perfectly. It clears out the old content so that the new content can be loaded (in this case, the new content is the information about the parent challenge).
As I was testing this fix, I found some problems with the .csv file that is used to seed the challenges in the database. Some of the challenges were not having their parent challenges set properly and therefore were not being displayed as child challenges in the application. I went through the list and fixed this issue so that the challenges will now be correctly associated with their parent.
No comments:
Post a Comment