updated by GasGit automation
This commit is contained in:
parent
839808a6f6
commit
d5004a50d3
1 changed files with 11 additions and 0 deletions
|
@ -28,6 +28,17 @@ var Home = (function (home) {
|
|||
Process.drawChart();
|
||||
},false);
|
||||
|
||||
// insert in sheet
|
||||
Utils.el('insert-button').addEventListener('click', function () {
|
||||
// convert to png and ask the server to do it
|
||||
try {
|
||||
Client.insertImage ( CanvasConvert.svgToPng (Process.control.code.picker.value));
|
||||
}
|
||||
catch (err) {
|
||||
App.showNotification ('Converting image to PNG format', err);
|
||||
}
|
||||
});
|
||||
|
||||
// drop downs for field names
|
||||
Object.keys(Process.control.activeHeadings).forEach (function (k) {
|
||||
Process.control.activeHeadings[k].elem.addEventListener ('change' , function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue