comparison js/core.js @ 2372:a6670226df24

Typos
author Brecht De Man <b.deman@qmul.ac.uk>
date Wed, 18 May 2016 15:34:20 +0100
parents c6c214cea795
children c41caaa96633
comparison
equal deleted inserted replaced
2370:9cac616c6f57 2372:a6670226df24
833 var node = this.popupOptions[this.currentIndex]; 833 var node = this.popupOptions[this.currentIndex];
834 if (node.specification.type == 'question') { 834 if (node.specification.type == 'question') {
835 // Must extract the question data 835 // Must extract the question data
836 var textArea = $(popup.popupContent).find('textarea')[0]; 836 var textArea = $(popup.popupContent).find('textarea')[0];
837 if (node.specification.mandatory == true && textArea.value.length == 0) { 837 if (node.specification.mandatory == true && textArea.value.length == 0) {
838 interfaceContext.lightbox.post("Error","This Question is mandatory"); 838 interfaceContext.lightbox.post("Error","This question is mandatory");
839 return; 839 return;
840 } else { 840 } else {
841 // Save the text content 841 // Save the text content
842 console.log("Question: "+ node.specification.statement); 842 console.log("Question: "+ node.specification.statement);
843 console.log("Question Response: "+ textArea.value); 843 console.log("Question Response: "+ textArea.value);