From 2956640a5c39754c3fc41da2ffa3f21857ce914f Mon Sep 17 00:00:00 2001 From: Alan Bernstein Date: Wed, 26 Apr 2017 14:35:23 -0500 Subject: [PATCH] Link to external docs --- webui/assets/main.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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(); }