diff --git a/webui/assets/main.js b/webui/assets/main.js index 190493edc..cd9846d5e 100644 --- a/webui/assets/main.js +++ b/webui/assets/main.js @@ -241,10 +241,14 @@ function setNav(e) { interface_el.classList.add("interface-active") // hack hack - if(name == "cluster") { - update_cluster_status() + switch(name) { + case "cluster": + update_cluster_status() + break + case "documentation": + open_external_docs() + break } - } @@ -261,6 +265,10 @@ function update_cluster_status() { xhr.send(null) } +function open_external_docs() { + window.open("https://www.pilosa.com/docs"); +} + Date.prototype.today = function () { return this.getFullYear() +"/"+ (((this.getMonth()+1) < 10)?"0":"") + (this.getMonth()+1) +"/"+ ((this.getDate() < 10)?"0":"") + this.getDate(); }