Created
October 20, 2012 14:39
-
-
Save danpalmer/3923444 to your computer and use it in GitHub Desktop.
This file contains 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
function config() { | |
if (!Editor) { | |
return; | |
} | |
var window = new Sheet(Editor.current().window()); | |
window.setFrame({x:0, y:0, width:355, height:130}); | |
window.htmlPath = 'config.html'; | |
window.buttons = ['Save', 'Cancel']; | |
window.onButtonClick = function(button) { | |
if (button == 'Save') { | |
saveConfig(window); | |
} | |
}; | |
window.run(); | |
} | |
function saveConfig(window) { | |
var settings = window.evalExpr('settings'); | |
Alert.show('Debug', settings.toString()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment