Removed unneeded console.logs (#131)
Co-authored-by: mikolaj widla <mikolaj.widla@gmail.com> Co-authored-by: Adam Bem <adam.bem@zoho.eu> Reviewed-on: #131
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| $(document).ready( function() { | ||||
|     document.getElementById("rest-mock").href = | ||||
|         window.location.protocol + "//" + window.location.hostname + ":8097"; | ||||
|     console.log("DONE") | ||||
|      | ||||
| }); | ||||
|          | ||||
| @@ -203,7 +203,6 @@ function smoothFoldElement(element, toogleState, toggleParrent) { | ||||
| */ | ||||
| function refreshTooltip() { | ||||
|     var resizeList = document.getElementsByClassName("collapsibleData"); | ||||
|     console.log("collDataList: " + resizeList.length) | ||||
|     document.getElementById("processorTooltipInfo").innerText = procInfo; | ||||
|     document.getElementById("xsltelementsheader").innerText = XSLTheader; | ||||
| } | ||||
| @@ -288,7 +287,6 @@ function performFormatRequest(endpoint, checkXML, sourceId, targetId) { | ||||
|      | ||||
|     if (!empty) { | ||||
|         restRequest(port, endpoint, xmlData, "").then(function (result) { | ||||
|             console.log(result); | ||||
|             if (result.status == "OK") { | ||||
|                 targetElement.value = result.result; | ||||
|                 targetElement.style.backgroundColor = null; | ||||
| @@ -329,17 +327,12 @@ async function restRequest(port, endpoint, xmlData, transformData) { | ||||
|         xmlData = "<empty/>"; | ||||
|     } | ||||
|      | ||||
|     // var data = xmlData.concat(escapeChar, transformData); | ||||
|      | ||||
|     // const url = addr.concat("?escapechar=", escapeChar, "&processor=", getProcInfo()); | ||||
|      | ||||
|     var jsonData = JSON.stringify({ | ||||
|         "data": xmlData, | ||||
|         "process": transformData, | ||||
|         "processor": getProcessor(), | ||||
|         "version": getVersion() | ||||
|     }); | ||||
|     // console.log(jsonData); | ||||
|     var init = { | ||||
|         headers: new Headers({ | ||||
|         }), | ||||
|   | ||||
| @@ -3411,7 +3411,6 @@ | ||||
|         function processTooltip() { | ||||
|             var filter = "collapse" + getVersion(); | ||||
|             var collList; | ||||
|             console.log("filter: ", filter); | ||||
|  | ||||
|  | ||||
|             if (filter == "collapse3.0") { | ||||
| @@ -3419,13 +3418,13 @@ | ||||
|                 showList(document.getElementsByName("collapse20")); | ||||
|                 showList(document.getElementsByName("collapse30")); | ||||
|                 hideList(document.getElementsByName("collapse31")); | ||||
|                 console.log("collapsed 3.0"); | ||||
|                  | ||||
|             } else if (filter == "collapse3.1") { | ||||
|                 document.getElementById("tooltipFunctionInfo").innerText = "XPath 1.0, 2.0, 3.0 & 3.1 functions"; | ||||
|                 showList(document.getElementsByName("collapse20")); | ||||
|                 showList(document.getElementsByName("collapse30")); | ||||
|                 showList(document.getElementsByName("collapse31")); | ||||
|                 console.log("collapsed 3.1"); | ||||
|                  | ||||
|             } else if (filter == "collapse2.0") { | ||||
|                 document.getElementById("tooltipFunctionInfo").innerText = "XPath 1.0 & 2.0 functions"; | ||||
|                 showList(document.getElementsByName("collapse20")); | ||||
| @@ -3442,7 +3441,7 @@ | ||||
|  | ||||
|         var triggerList = document.getElementsByClassName("collapseTrigger"); | ||||
|         for (i = 0; i < triggerList.length; i++) { | ||||
|             console.log("trigger connected"); | ||||
|              | ||||
|             triggerList[i].addEventListener("click", function () { | ||||
|                 var collapsible = this.parentElement; | ||||
|                 if (this.tagName == "A") { | ||||
| @@ -3452,7 +3451,7 @@ | ||||
|  | ||||
|                 } | ||||
|  | ||||
|                 console.log(collapsibleData); | ||||
|                  | ||||
|                 if (collapsibleData.style.maxHeight > "0px") { | ||||
|                     collapsibleData.style.maxHeight = "0px"; | ||||
|  | ||||
| @@ -3487,7 +3486,7 @@ | ||||
|             //Handle clicks in whole form and set info in tooltip | ||||
|             setDefaultContent(document.getElementById("xmlArea"), 'Insert XML here'); | ||||
|             setDefaultContent(document.getElementById("transformArea"), 'Insert XPath expression here'); | ||||
|             console.log("init"); | ||||
|              | ||||
|             processVersionSelector(); | ||||
|             processTooltip(); | ||||
|             tool.addEventListener('change', event => { | ||||
|   | ||||
| @@ -81,7 +81,7 @@ | ||||
|             //Handle clicks in whole form and set info in tooltip | ||||
|             setDefaultContent(document.getElementById("xmlArea"), 'Insert XML here'); | ||||
|             setDefaultContent(document.getElementById("transformArea"), 'Insert XSD here'); | ||||
|             console.log("init"); | ||||
|              | ||||
|             // refreshTooltip(); | ||||
|             processTooltip(); | ||||
|             tool.addEventListener('click', event => { | ||||
| @@ -92,13 +92,11 @@ | ||||
|                 } | ||||
|  | ||||
|                 processTooltip(); | ||||
|                 // console.log("clock"); | ||||
|                 //  | ||||
|             }) | ||||
|         } | ||||
|  | ||||
|         function processTooltip() { | ||||
|             console.log("processTooltip"); | ||||
|  | ||||
|  | ||||
|             if (getProcessor() == "xalan") { | ||||
|                 document.getElementById("tooltipFunctionInfo").innerText = "XSLT 1.0 functions"; | ||||
|   | ||||
| @@ -1138,7 +1138,7 @@ | ||||
|  | ||||
|     <script> | ||||
|         function processTooltip() { | ||||
|             console.log("processTooltip"); | ||||
|              | ||||
|             if (getProcessor() == "xalan" || getProcessor() == "libxml") { | ||||
|                 document.getElementById("tooltipFunctionInfo").innerText = "XSLT 1.0 functions"; | ||||
|                 document.getElementById("processorTooltipInfo").innerText = "Supports XSLT 1.0"; | ||||
| @@ -1152,9 +1152,9 @@ | ||||
|  | ||||
|         var triggerList = document.getElementsByClassName("collapseTrigger"); | ||||
|         for (i = 0; i < triggerList.length; i++) { | ||||
|             console.log("trigger connected"); | ||||
|              | ||||
|             triggerList[i].addEventListener("click", function () { | ||||
|                 console.log("click"); | ||||
|                  | ||||
|                 var collapsible = this.parentElement; | ||||
|                 var collapsibleData = this.nextElementSibling; | ||||
|                 if (collapsibleData.style.maxHeight > "0px") { | ||||
| @@ -1191,7 +1191,7 @@ | ||||
|             //Handle clicks in whole form and set info in tooltip | ||||
|             setDefaultContent(document.getElementById("xmlArea"), 'Insert XML here'); | ||||
|             setDefaultContent(document.getElementById("transformArea"), 'Insert XSLT here'); | ||||
|             console.log("init"); | ||||
|              | ||||
|             // refreshTooltip(); | ||||
|             processTooltip(); | ||||
|             tool.addEventListener('click', event => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user