updated by GasGit automation

This commit is contained in:
Bruce McPherson 2015-06-17 11:48:33 +01:00
parent 839808a6f6
commit d5004a50d3

View file

@ -28,6 +28,17 @@ var Home = (function (home) {
Process.drawChart(); Process.drawChart();
},false); },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 // drop downs for field names
Object.keys(Process.control.activeHeadings).forEach (function (k) { Object.keys(Process.control.activeHeadings).forEach (function (k) {
Process.control.activeHeadings[k].elem.addEventListener ('change' , function () { Process.control.activeHeadings[k].elem.addEventListener ('change' , function () {