From 3f3e69b8425b345dfbd57b32a1b14782464da30e Mon Sep 17 00:00:00 2001 From: bfederle Date: Mon, 23 Jan 2012 15:06:16 -0800 Subject: [PATCH] Add help link to top user drop-down --- ui/scripts/ui/core.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ui/scripts/ui/core.js b/ui/scripts/ui/core.js index ba3efa2c7e5..75b0c595a90 100644 --- a/ui/scripts/ui/core.js +++ b/ui/scripts/ui/core.js @@ -241,11 +241,21 @@ // User options var $options = $('
').attr({ id: 'user-options' }) .appendTo($('#header')); - $(['Logout']).each(function() { - $('') + $(['Logout', 'Help']).each(function() { + var $link = $('') .attr({ href: '#' }) .html(this.toString()) .appendTo($options); + + if (this == 'Help') { + $link.click(function() { + var helpURL = 'http://docs.cloud.com/CloudStack_Documentation'; + + window.open(helpURL, '_blank'); + + return false; + }); + } }); // Initialize browser