Still working on network online offline detection...
This commit is contained in:
@@ -10,6 +10,7 @@ async function render_event_presentation_records(events) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
let launcher_sessions = document.getElementById('launcher_sessions').childNodes; //_list_items
|
||||
//console.log(launcher_sessions);
|
||||
|
||||
@@ -30,7 +31,7 @@ async function render_event_presentation_records(events) {
|
||||
console.log('Current launcher presentation_id='+presentations_list[j].getAttribute('data-presentation_id'));
|
||||
let presentation_id = presentations_list[j].getAttribute('data-presentation_id');
|
||||
|
||||
await tbl_event_presentation.iterate(function(value, key, iteration) {
|
||||
let tbl_event_presentation_result = await tbl_event_presentation.iterate(function(value, key, iteration) {
|
||||
//console.log('*** 1: session_id='+session_id+' | presentation.event_session_id='+value.event_session_id+' | presentation_id='+presentation_id+' | presentation.id='+value.id+' (launcher sessions loop i='+i+')');
|
||||
looping_tbl_event_presentation = true;
|
||||
if (session_id == value.event_session_id && presentation_id == value.id) {
|
||||
@@ -67,7 +68,7 @@ async function render_event_presentation_records(events) {
|
||||
|
||||
|
||||
// Now that the updates and removals have been done we need to add presentations.
|
||||
await tbl_event_presentation.iterate(function(value, key, iteration) {
|
||||
let tbl_event_presentation_result = await tbl_event_presentation.iterate(function(value, key, iteration) {
|
||||
//console.log('*** 2: session_id='+session_id+' | presentation.event_session_id='+value.event_session_id+' | presentation.id='+value.id+' (launcher sessions loop i='+i+')');
|
||||
looping_tbl_event_presentation = true;
|
||||
|
||||
@@ -200,10 +201,15 @@ async function render_event_presentation_records(events) {
|
||||
}).then(function() {
|
||||
console.log('idb_to_ui: Iterate tbl_event_presentation looking for presentations to add is complete');
|
||||
looping_tbl_event_presentation = false;
|
||||
return true;
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.log('Something went wrong in function render_event_presentation_records.');
|
||||
console.log(error);
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
return true;
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user