function populateFlashDrivePrepForm() { var interfacePrepToolTemplate = `

Select the type of controller the Interface is / will be attached to so we can ensure the correct supporting files are copied to the USB drive
Target Controller

You can also enter your Wifi details, if you'd like the Interface to connect to your Wifi Network
(Requires Interface Firmware V1.58 or later)
Wifi Network Name (SSID)
Wifi Network Password (PSK)

Select the USB drive you are going to use with the Interface
Target USB Drive
` //Metro.dialog.open("#usbPrepDialog"); Metro.dialog.create({ title: "Prepare USB drive for Interface", clsDialog: "dark", totop: "true", width: "60%", content: interfacePrepToolTemplate, actions: [{ caption: "Cancel", cls: "js-dialog-close alert", // onclick: function() { // macro1repeat = false; // printLog("Repeating Macro Exited") // } }, { caption: "Copy Supporting Files and Wifi Configuration to Flashdrive", cls: "js-dialog-close success disabled interfaceCopyBtn", onclick: function() { copyFilesToUsb() } }] }); } function interfaceReadyToCopy() { // drive: laststatus.interface.diskdrive, // controller: $("#profileTargetController").val() if ($("#interfaceDriveLetterBtn").html() == " Select USB Flashdrive" && $("#profileTargetController").val() != "") { $(".interfaceCopyBtn").removeClass('disabled'); } } function copyFilesToUsb() { $('#controlTab').click(); $('#consoletab').click(); data = { drive: laststatus.interface.diskdrive, controller: $("#profileTargetController").val(), ssid: $("#interface-wifi-ssid").val(), psk: $("#interface-wifi-psk").val() } socket.emit("writeInterfaceUsbDrive", data) Metro.dialog.close("#usbPrepDialog"); }