More clean up of the JS code.
This commit is contained in:
@@ -3,6 +3,13 @@ async function render_event_presentation_records(events) {
|
||||
console.log('Rendering event presentation records...');
|
||||
console.log('****************** Presentations ******************');
|
||||
|
||||
if (looping_tbl_event_presentation) {
|
||||
console.log('Already looping through the tbl_event_presentation table. Not starting until finished.');
|
||||
return false;
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
let launcher_sessions = document.getElementById('launcher_sessions').childNodes; //_list_items
|
||||
//console.log(launcher_sessions);
|
||||
|
||||
@@ -45,6 +52,7 @@ async function render_event_presentation_records(events) {
|
||||
|
||||
}).then(function() {
|
||||
console.log('idb_to_ui: Iterate tbl_event_presentation looking for presentations to update or remove is complete');
|
||||
|
||||
looping_tbl_event_presentation = false;
|
||||
});
|
||||
}
|
||||
@@ -151,8 +159,7 @@ async function render_event_presentation_records(events) {
|
||||
// Trying to remove old ID in case there is one already rendered
|
||||
try {
|
||||
document.getElementById('event_presentation_'+value.id).remove();
|
||||
}
|
||||
catch(err) {
|
||||
} catch(err) {
|
||||
console.log('A node with the ID of event_presentation_'+value.id+' was not found. In most cases this is expected.');
|
||||
console.log(err.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user