/* jshint esnext: true */ ( function() { // nb: put the entire file into its own local namespace, global stuff gets added to window. var gVsavData, gScreenshotData ; var $gDialog, $gVsavContainer, $gScreenshotContainer ; // -------------------------------------------------------------------- window.uploadScenario = function() { // initialize var asaScenarioId = $( "input[name='ASA_ID']" ).val() ; function onAddVsavFile() { if ( ! canAddVsavFile() ) return ; if ( getUrlParam( "vsav_persistence" ) ) { // FOR TESTING PORPOISES! We can't control a file upload from Selenium (since // the browser will use native controls), so we get the data from a