Skip to content
Permalink
Browse files

Change to loading icon when uploading ZIP

  • Loading branch information...
Wilbur Shi Wilbur Shi
Wilbur Shi authored and Wilbur Shi committed Aug 23, 2016
1 parent 37b1c90 commit 97c6ea1c7def18bac760ea92a8d771f35a836812
Showing with 3 additions and 1 deletion.
  1. +3 −1 js/photonic3d.js
@@ -75,6 +75,7 @@ function initializeValues() {
}

function makeZip() {
$('#uploadzip-icon').prop('class', 'glyphicon glyphicon-refresh glyphicon-spin');
if (zipFile === null || zipFile === undefined) {
alert("You must first slice images to generate a zip file.");
} else {
@@ -96,6 +97,7 @@ function uploadZip(zipFile, fileName) {
request.onreadystatechange = function () {
if (request.readyState == 4 && request.status == 200) {
// window.open('/printablesPage', '_self');
$('#uploadzip-icon').prop('class', 'glyphicon glyphicon-upload');
alert("Upload successful! Refresh printables page on Photonic3D to see the file.");
}
}
@@ -119,7 +121,7 @@ function makeButton() {
newbtn.id = "new-zip-button";
newbtn.className = "btn btn-primary";
newbtn.disabled = true;
newbtn.innerHTML = '<span class="glyphicon glyphicon-upload"></span> Upload ZIP To Photonic3D';
newbtn.innerHTML = '<i class="glyphicon glyphicon-upload" id="uploadzip-icon"></i> Upload ZIP To Photonic3D';
}

var oldEndSlicing = endSlicing;

0 comments on commit 97c6ea1

Please sign in to comment.
You can’t perform that action at this time.