re-add logs dialog to menu

This commit is contained in:
rolux 2011-11-02 21:04:27 +00:00
parent cfa32ef20f
commit dffa404e98
2 changed files with 8 additions and 1 deletions

View file

@ -87,7 +87,9 @@ pandora.ui.logsDialog = function() {
id: 'text', id: 'text',
title: 'Text', title: 'Text',
tooltip: function(data) { tooltip: function(data) {
return '<pre style="font-size: 10px">' + data.text.replace(/\n\n/g, '<br/>') + '</pre>'; return $('<code>').append(
$('<pre>').html(data.text.replace(/\n\n/g, '<br/>'))
);
}, },
visible: true, visible: true,
width: 640 width: 640

View file

@ -139,6 +139,7 @@ pandora.ui.mainMenu = function() {
pandora.site.capabilities.canSeeDebugMenu[pandora.user.level] pandora.site.capabilities.canSeeDebugMenu[pandora.user.level]
? [ ? [
{ id: 'debugMenu', title: 'Debug', items: [ { id: 'debugMenu', title: 'Debug', items: [
{ id: 'logs', title: 'View Logs...'},
{ id: 'clearcache', title: 'Clear Cache'}, { id: 'clearcache', title: 'Clear Cache'},
{ id: 'reloadapplication', title: 'Reload Application'}, { id: 'reloadapplication', title: 'Reload Application'},
{ id: 'resetui', title: 'Reset UI Settings'}, { id: 'resetui', title: 'Reset UI Settings'},
@ -258,6 +259,10 @@ pandora.ui.mainMenu = function() {
groups: pandora.site.user.ui.groups groups: pandora.site.user.ui.groups
}); });
pandora.$ui.contentPanel.replaceElement(0, pandora.$ui.browser = pandora.ui.browser()); pandora.$ui.contentPanel.replaceElement(0, pandora.$ui.browser = pandora.ui.browser());
} else if (data.id == 'logs') {
(pandora.$ui.logsDialog || (
pandora.$ui.logsDialog = pandora.ui.logsDialog()
)).open();
} else if (data.id == 'clearcache') { } else if (data.id == 'clearcache') {
Ox.Request.clearCache(); Ox.Request.clearCache();
} else if (data.id == 'reloadapplication') { } else if (data.id == 'reloadapplication') {