function openDialogChooseFile() { global $dialogOpen; $_fileChooser = $dialogOpen->get_widget('_fileChooser'); if (isset($_fileChooser->get_filenames()[0]) && file_exists($_fileChooser->get_filenames()[0])) { readSVG($_fileChooser->get_filenames()[0]); $_fileChooser->destroy(); } }
function navBarClick($type) { global $fileList; readSVG($fileList['nav'][$type]); }