Commit 1e218ac5 authored by jgould's avatar jgould

only show help menu once

parent d92d4009
...@@ -246,20 +246,22 @@ morpheus.HeatMap = function(options) { ...@@ -246,20 +246,22 @@ morpheus.HeatMap = function(options) {
// if (window.location.hostname.indexOf('clue.io') === -1 // if (window.location.hostname.indexOf('clue.io') === -1
// && window.location.pathname.indexOf('cancer/software/morpheus') === // && window.location.pathname.indexOf('cancer/software/morpheus') ===
// -1) { // -1) {
var $a = $('<a title="Produced with Morpheus" style="font-size:85%;margin-right:2px;margin-top:2px;" href="' if (!morpheus.HelpMenu.ADDED) { // only show once per page
+ morpheus.Util.URL morpheus.HelpMenu.ADDED = true;
+ '" target="_blank"><img style="width:16px;height:16px;" src="' var $a = $('<a title="Produced with Morpheus" style="font-size:85%;margin-right:2px;margin-top:2px;" href="'
+ morpheus.Util.URL + '/images/icon.svg"></a>'); + morpheus.Util.URL
$a.tooltip({ + '" target="_blank"><img style="width:16px;height:16px;" src="'
placement : 'auto' + morpheus.Util.URL + '/images/icon.svg"></a>');
}); $a.tooltip({
// var $img = $a.find('img'); placement : 'auto'
});
var $right = $('<div style="margin-right:2px;" class="pull-right"></div>'); // var $img = $a.find('img');
$a.appendTo($right);
new morpheus.HelpMenu().$el.appendTo($right);
$right.appendTo(this.tabManager.$nav);
var $right = $('<div style="margin-right:2px;" class="pull-right"></div>');
$a.appendTo($right);
new morpheus.HelpMenu().$el.appendTo($right);
$right.appendTo(this.tabManager.$nav);
}
if (!this.options.tabManager) { if (!this.options.tabManager) {
this.tabManager.$nav.appendTo(this.$el); this.tabManager.$nav.appendTo(this.$el);
this.tabManager.$tabContent.appendTo(this.$el); this.tabManager.$tabContent.appendTo(this.$el);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment