diff --git a/ui/scripts/ui/core.js b/ui/scripts/ui/core.js index a703fa0db87..40e337b4eb7 100644 --- a/ui/scripts/ui/core.js +++ b/ui/scripts/ui/core.js @@ -254,6 +254,12 @@ $elem.appendTo($container); }); + var checkTitle = function(str) { + if ($('#header.nologo').size() == 0) { + return str.replace(/CloudStack/ig,'CloudPlatform'); + } else { return str; } + }; + // User options var $options = $('
').attr({ id: 'user-options' }) .appendTo($('#header')); @@ -274,13 +280,13 @@ } if (this == 'About') { $link.click(function() { - var $logo = $('
').addClass('logo').html('CloudStack'), + var $logo = $('
').addClass('logo').html(checkTitle('CloudStack')), $version = $('
').addClass('version').html(g_cloudstackversion), $about = $('
').addClass('about').append($logo).append($version); $about.dialog({ modal: true, width: 300, - title: 'About CloudStack', + title: checkTitle('About CloudStack'), closeOnEscape: false, dialogClass: 'dialog-about', buttons: {