Permalink
Browse files

Fixed issues with print and save buttons.

Turns out it was  	$('.verbergen').hide(1); running before the DOM had been fully created. Adding it to initializeValues fixes it.
  • Loading branch information...
1 parent 1d0b4aa commit 911767fa0c423d3003277a95abbccb9241ee0383 @WGAndrew WGAndrew committed Nov 30, 2016
Showing with 4 additions and 3 deletions.
  1. +4 −3 js/photonic3d.js
View
@@ -1,6 +1,4 @@
-// Photonic3D Modifications and Features to SLAcer
-// Photocentric add on
- $('.verbergen').hide(1);
+
// Utils
function findPythagoreanC(a, b) {
@@ -55,6 +53,9 @@ function setPrinterCalibrationSettings(printer) {
// Initialize values
function initializeValues() {
+ // Photonic3D Modifications and Features to SLAcer
+ // Photocentric add on
+ $('.verbergen').hide(1);
var btn = document.getElementById("print-button");
btn.onclick= function(){makeZip(printZip);};

0 comments on commit 911767f

Please sign in to comment.