From 7e070c3b6888e2ec19dd080832a1ae550aa9a723 Mon Sep 17 00:00:00 2001 From: Taka Date: Sat, 23 Jul 2022 02:52:47 +1000 Subject: [PATCH] Update the UI after importing an ASA scenario. --- vasl_templates/webapp/static/scenarios.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vasl_templates/webapp/static/scenarios.js b/vasl_templates/webapp/static/scenarios.js index 95d406b..fe31465 100644 --- a/vasl_templates/webapp/static/scenarios.js +++ b/vasl_templates/webapp/static/scenarios.js @@ -733,6 +733,10 @@ function doImportScenario( scenario ) scenario.roar ? scenario.roar.scenario_id : null ) ; + // update the UI + on_scenario_date_change() ; + on_scenario_theater_change() ; + // all done - we can now close the dialog $gDialog.dialog( "close" ) ; } @@ -909,6 +913,7 @@ function doImportField_player( importField, newVal, scenario ) { var playerNo = importField.paramName.substring( importField.paramName.length-1 ) ; on_player_change( playerNo ) ; $elem.val( newVal ).trigger( "change" ) ; + on_player_change( playerNo ) ; // nb: to update the UI for the new player } }