N°2884 - Core update : Database version not updated - prevent multi click on button "About iTop"

This commit is contained in:
acognet
2022-03-01 17:04:37 +01:00
parent c737fc46ff
commit 2f98a3e7ac
2 changed files with 8 additions and 2 deletions

View File

@@ -17,10 +17,16 @@
*/
// Helpers
function ShowAboutBox()
function ShowAboutBox(sTitle)
{
var loadingDialog = $('<div style="padding-top:40px; padding-left:40px;"><i class="fa fa-sync-alt fa-spin fa-x fa-fw"></i></div>');
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;
}

View File

@@ -220,7 +220,7 @@ class PopoverMenuFactory
new JSPopupMenuItem(
'UI:AboutBox',
Dict::S('UI:AboutBox'),
'return ShowAboutBox();'
'return ShowAboutBox("'.Dict::S('UI:AboutBox').'");'
)
);