Fixed regression introduced in [4022]: about box not displayed

SVN:trunk[4054]
This commit is contained in:
Romain Quetiez
2016-05-11 11:46:28 +00:00
parent 37a6a5183d
commit 06075805e0

View File

@@ -109,6 +109,17 @@ class iTopWebPage extends NiceWebPage implements iTabbedPage
if (!$this->IsPrintableVersion())
{
$this->PrepareLayout();
$this->add_script(
<<<EOF
function ShowAboutBox()
{
$.post(GetAbsoluteUrlAppRoot()+'pages/ajax.render.php', {operation: 'about_box'}, function(data){
$('body').append(data);
});
return false;
}
EOF
);
}
}
@@ -135,7 +146,6 @@ class iTopWebPage extends NiceWebPage implements iTabbedPage
protected function PrepareLayout()
{
$bLeftPaneOpen = true;
if (MetaModel::GetConfig()->Get('demo_mode'))
{
// No pin button