( function() { // nb: put the entire file into its own local namespace, global stuff gets added to window. var $gLogFilesToUpload ; var gEventHandlers ; var gDisableClickToAddTimestamp = new Date() ; // -------------------------------------------------------------------- window.on_analyze_vlog = function() { // initialize var $dlg ; function onAddFile() { // FUDGE! Files can be removed from the upload list by using the mouse (e.g. Ctrl-Click, // or clicking on the "delete" icon), so we don't want to also trigger an "add" dialog. var delta = (new Date()).getTime() - gDisableClickToAddTimestamp.getTime() ; if ( delta <= 5 ) return ; // add a file to the list of files to be analyzed if ( getUrlParam( "vlog_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