diff --git a/js/pages/backoffice/toolbox.js b/js/pages/backoffice/toolbox.js index 8cd8d2a5f..2f4b3251d 100644 --- a/js/pages/backoffice/toolbox.js +++ b/js/pages/backoffice/toolbox.js @@ -17,10 +17,16 @@ */ // Helpers -function ShowAboutBox() +function ShowAboutBox(sTitle) { + var loadingDialog = $('
'); + loadingDialog.dialog( {title:sTitle,autoOpen: true, modal: true}); $.post(GetAbsoluteUrlAppRoot()+'pages/ajax.render.php', {operation: 'about_box'}, function(data){ + $('body').append(data); + }).always(function() { + loadingDialog.empty(); + loadingDialog.remove(); }); return false; } diff --git a/sources/application/UI/Base/Component/PopoverMenu/PopoverMenuFactory.php b/sources/application/UI/Base/Component/PopoverMenu/PopoverMenuFactory.php index 762e73933..6bb2b0ed9 100644 --- a/sources/application/UI/Base/Component/PopoverMenu/PopoverMenuFactory.php +++ b/sources/application/UI/Base/Component/PopoverMenu/PopoverMenuFactory.php @@ -220,7 +220,7 @@ class PopoverMenuFactory new JSPopupMenuItem( 'UI:AboutBox', Dict::S('UI:AboutBox'), - 'return ShowAboutBox();' + 'return ShowAboutBox("'.Dict::S('UI:AboutBox').'");' ) );