Created
February 28, 2012 07:13
-
-
Save poor666/1930325 to your computer and use it in GitHub Desktop.
onMouseDown
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onButtonClick = function(event){ | |
event.result = [ | |
["save", "enabled", false], | |
["Pass", "enabled", false], | |
["save", "label", waitingFrase()] | |
]; | |
setup.password = event.currentValues.Pass; | |
var appDir = fw.userJsCommandsDir + "/my_commands"; | |
var file = appDir+"/buildUp.jsf"; | |
fw.runScript(file); | |
}, | |
panelJSON = { | |
events: { | |
onFwObjectSettingChange: function(event){ | |
console.log(":::: onFwObjectSettingChange"); | |
}, | |
onFwActiveToolChange: function(event) | |
{ | |
console.log(":::: onFwActiveToolChange"); | |
} | |
}, | |
children: [ | |
{ | |
TextInput: { | |
name: "Pass", | |
toolTip: "Choose a password", | |
text: "clientpass", | |
style: { | |
fontWeight: "bold", | |
fontSize: 15, | |
} | |
} | |
}, | |
{ | |
Button: { | |
label: "Build Presentationx", | |
name:"save", | |
events: { | |
click: onButtonClick | |
} | |
} | |
} | |
] | |
}; | |
fwlib.panel.register(panelJSON); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
there should be a way to do this
Button: {
label: "Build Presentationx",
name:"save",
events: {
onMouseDown: onButtonDown,
click: onButtonClick
}
}