comparison core.js @ 1198:4560587673b4

Bug #1583 Fix. Popup buttons hidden on successful submission.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Mon, 22 Feb 2016 12:44:55 +0000
parents 47bfd9594617
children 27be75c51b5c
comparison
equal deleted inserted replaced
1197:47bfd9594617 1198:4560587673b4
366 }; 366 };
367 xmlhttp.send(file); 367 xmlhttp.send(file);
368 popup.showPopup(); 368 popup.showPopup();
369 popup.popupContent.innerHTML = null; 369 popup.popupContent.innerHTML = null;
370 popup.popupContent.textContent = "Submitting. Please Wait"; 370 popup.popupContent.textContent = "Submitting. Please Wait";
371 popup.hideNextButton();
372 popup.hidePreviousButton();
371 } 373 }
372 } 374 }
373 375
374 function errorSessionDump(msg){ 376 function errorSessionDump(msg){
375 // Create the partial interface XML save 377 // Create the partial interface XML save
736 var blank = document.getElementsByClassName('testHalt')[0]; 738 var blank = document.getElementsByClassName('testHalt')[0];
737 blank.style.width = window.innerWidth; 739 blank.style.width = window.innerWidth;
738 blank.style.height = window.innerHeight; 740 blank.style.height = window.innerHeight;
739 } 741 }
740 }; 742 };
743 this.hideNextButton = function() {
744 this.buttonProceed.style.visibility = "hidden";
745 }
746 this.hidePreviousButton = function() {
747 this.buttonPrevious.style.visibility = "hidden";
748 }
749 this.showNextButton = function() {
750 this.buttonProceed.style.visibility = "visible";
751 }
752 this.showPreviousButton = function() {
753 this.buttonPrevious.style.visibility = "visible";
754 }
741 } 755 }
742 756
743 function advanceState() 757 function advanceState()
744 { 758 {
745 // Just for complete clarity 759 // Just for complete clarity