Add help link to top user drop-down

This commit is contained in:
bfederle 2012-01-23 15:06:16 -08:00
parent 8e82266f6b
commit 3f3e69b842
1 changed files with 12 additions and 2 deletions

View File

@ -241,11 +241,21 @@
// User options
var $options = $('<div>').attr({ id: 'user-options' })
.appendTo($('#header'));
$(['Logout']).each(function() {
$('<a>')
$(['Logout', 'Help']).each(function() {
var $link = $('<a>')
.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