diff --git a/_javascripts/page-loader.js b/_javascripts/page-loader.js index bc0a643d8f..353309ad1c 100644 --- a/_javascripts/page-loader.js +++ b/_javascripts/page-loader.js @@ -57,17 +57,17 @@ function selectVersion(currentVersion) { // in enterprise branch 4, we have modules and this is an attempt to load the // modules by double clicking on them. - if(currentVersion.charAt(0) === "4") { - var element = document.getElementsByTagName('h2'); - Object.entries(element).map(( object ) => { - object[1].addEventListener("dblclick", function() { + // if(currentVersion.charAt(0) === "4") { + // var element = document.getElementsByTagName('h2'); + // Object.entries(element).map(( object ) => { + // object[1].addEventListener("dblclick", function() { // alert(this.id); // alert(this.id.split("_", 1)[0] + ".adoc"); - var fn = this.id.split("_", 1)[0] + ".adoc"; - window.open("https://github.com/openshift/openshift-docs/tree/enterprise-" + - currentVersion + "/modules/" + fn, "_new"); - }); - }); - } + // var fn = this.id.split("_", 1)[0] + ".adoc"; + // window.open("https://github.com/openshift/openshift-docs/tree/enterprise-" + + // currentVersion + "/modules/" + fn, "_new"); + // }); + // }); + // } }