mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-18 16:18:47 +02:00
N°2884 - Core update : Database version not updated - prevent multi click on button "About iTop"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -220,7 +220,7 @@ class PopoverMenuFactory
|
||||
new JSPopupMenuItem(
|
||||
'UI:AboutBox',
|
||||
Dict::S('UI:AboutBox'),
|
||||
'return ShowAboutBox();'
|
||||
'return ShowAboutBox("'.Dict::S('UI:AboutBox').'");'
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user