From 97bd169d70247591674fe9938749409af5c06fed Mon Sep 17 00:00:00 2001 From: Taka Date: Tue, 27 Nov 2018 09:44:56 +0000 Subject: [PATCH] Show the VASSAL shim report before saving the updated VSAV file. --- vasl_templates/webapp/static/vassal.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/vasl_templates/webapp/static/vassal.js b/vasl_templates/webapp/static/vassal.js index 7fb4eb9..2acfb15 100644 --- a/vasl_templates/webapp/static/vassal.js +++ b/vasl_templates/webapp/static/vassal.js @@ -107,14 +107,13 @@ function do_update_vsav( vsav_data, fname ) return ; } // save the updated VSAV file + _show_label_report_msg( data.report ) ; if ( gWebChannelHandler ) { - gWebChannelHandler.save_updated_vsav( data.filename, data.vsav_data, function( resp ) { - if ( resp ) - _show_label_report_msg( data.report ) ; - } ) ; + setTimeout( function() { // nb: give the label report time to appear :-/ + gWebChannelHandler.save_updated_vsav( data.filename, data.vsav_data ) ; + }, 1*1000 ) ; return ; } - _show_label_report_msg( data.report ) ; if ( getUrlParam( "vsav_persistence" ) ) { // FOR TESTING PORPOISES! We can't control a file download from Selenium (since // the browser will use native controls), so we store the result in a