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',
title: 'Text',
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,
width: 640

View File

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