How to call a function defined in UI script from a UI action.


1) Create a new UI script
2) Paste the following to the script portion of the UI script.

function functionsUIscriptHelpers() {
	function helper1() {
		alert("TEST helper1 FUNC")
	functionsUIscriptHelpers.functionsUIscriptHelpers = helper1;

3) Set UI script to Global.

4) Give it a name "functionsUIscript" and save.

This function helper1 can be called in a UI action as follows.

function onClickOfUIAction() {