updated by GasGit automation
This commit is contained in:
parent
0c6e143cad
commit
961bd12a1f
1 changed files with 0 additions and 26 deletions
|
@ -35,31 +35,5 @@ function showSankeySnip() {
|
|||
SpreadsheetApp.getUi().showSidebar(ui);
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens a picker dialog
|
||||
* will be kicked off as google.script.run from the sidebar
|
||||
*/
|
||||
function showPicker(content,pickerContent) {
|
||||
|
||||
var html = HtmlService.createTemplateFromFile('filepicker.html')
|
||||
.evaluate()
|
||||
.getContent();
|
||||
|
||||
var uiContent =
|
||||
HtmlService.createTemplate(html + "<script>\ndoIt(" +
|
||||
JSON.stringify({
|
||||
"content":content,
|
||||
"pickerContent":pickerContent,
|
||||
"token": ScriptApp.getOAuthToken(),
|
||||
"key":'AIzaSyA2VcAc8N7EGAxgh4Tr1qJL_F27yuh4rx0'
|
||||
}) +
|
||||
");\n</script>")
|
||||
.evaluate()
|
||||
.setWidth(Picker.settings.width)
|
||||
.setHeight(Picker.settings.height)
|
||||
.setSandboxMode(HtmlService.SandboxMode.IFRAME);
|
||||
|
||||
SpreadsheetApp.getUi().showModalDialog(uiContent, "Save svg code");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue