Disable multiple "Run" executions.
Hi,
I create a panel and I noticed that since it does some calculation after I press my main "Run" button:

The user can mistakenly think it is not running and press the "Run" button again which may cause the main function to run several times.
How can I allow only a single press of this button?
The relative functions are:
in the main.js i use:
csInterface.evalScript('createSplitExportWrapper(' + JSON.stringify(panelData) + ')');
in jsx i use:
function createSplitExportWrapper(panelData) {
var scriptFile = "/wrappers/createSplitExportWrapper.jsx";
var runScript = File(scriptDir + scriptFile);
// alert("scriptDir:\n" + runScript);
$.evalFile (runScript);
}
