Still working on network online offline detection...
This commit is contained in:
@@ -9,10 +9,11 @@ async function render_event_session_records() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
looping_tbl_event_session = true;
|
||||
|
||||
// First: update or add sessions
|
||||
tbl_event_session.iterate(function(value, key, iteration) {
|
||||
result = tbl_event_session.iterate(await function(value, key, iteration) {
|
||||
if (value.event_id == event_id && value.event_location_id == event_location_id) {
|
||||
console.log('*** Event session id ('+value.id+') is part of this event location.');
|
||||
|
||||
@@ -238,12 +239,11 @@ async function render_event_session_records() {
|
||||
}
|
||||
|
||||
looping_tbl_event_session = false;
|
||||
|
||||
// Third: re-index view session buttons
|
||||
index_launcher_sessions('btn_view_session');
|
||||
return true
|
||||
});
|
||||
|
||||
// Third: re-index view session buttons
|
||||
// NOTE: Should this go in a .then() section?
|
||||
// NOTE: It might make even more sense to only have this done individually per add. Should also do a remove to keep things clean.
|
||||
//index_launcher_sessions('btn_view_session');
|
||||
index_launcher_sessions('btn_view_session');
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user