kopia lustrzana https://github.com/c9/core
Merge pull request +15040 from c9/ide-support-links
Don't show support references in standalone modepull/385/head
commit
5a333e9868
|
@ -706,7 +706,8 @@ module.exports = function(options) {
|
|||
},
|
||||
{
|
||||
packagePath: "plugins/c9.ide.help/help",
|
||||
staticPrefix: staticPrefix + "/plugins/c9.ide.help"
|
||||
staticPrefix: staticPrefix + "/plugins/c9.ide.help",
|
||||
hosted: hosted
|
||||
},
|
||||
{
|
||||
packagePath: "plugins/c9.ide.guide/guide",
|
||||
|
|
|
@ -21,10 +21,8 @@ define(function(require, exports, module) {
|
|||
|
||||
var aboutDialog;
|
||||
|
||||
var loaded = false;
|
||||
function load(){
|
||||
if (loaded) return false;
|
||||
loaded = true;
|
||||
function load() {
|
||||
if (!options.hosted) return;
|
||||
|
||||
var mnuHelp = new ui.menu();
|
||||
menus.addItemByPath("Support/", mnuHelp, 900, plugin);
|
||||
|
@ -151,7 +149,6 @@ define(function(require, exports, module) {
|
|||
|
||||
});
|
||||
plugin.on("unload", function(){
|
||||
loaded = false;
|
||||
drawn = false;
|
||||
});
|
||||
|
||||
|
|
|
@ -17,7 +17,9 @@
|
|||
<div class="footer">
|
||||
<a href="https://docs.c9.io">Documentation</a> |
|
||||
<a href="http://status.c9.io">Server Status</a> |
|
||||
<a href="http://support.c9.io">Support</a>
|
||||
<% if (!standalone) { %>
|
||||
<a href="http://support.c9.io">Support</a>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
|
|
@ -9,7 +9,9 @@
|
|||
<div class="footer">
|
||||
<a href="https://docs.c9.io">Documentation</a> |
|
||||
<a href="http://status.c9.io">Server Status</a> |
|
||||
<a href="http://support.c9.io">Support</a>
|
||||
<% if (!standalone) { %>
|
||||
<a href="http://support.c9.io">Support</a>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -116,6 +116,7 @@ function plugin(options, imports, register) {
|
|||
architectConfig: getConfig(configName, opts),
|
||||
configName: configName,
|
||||
packed: opts.packed,
|
||||
standalone: true,
|
||||
version: opts.version
|
||||
}, next);
|
||||
});
|
||||
|
|
Ładowanie…
Reference in New Issue