From 6634f3981efd9f6369e113d885b228374ee3b8b3 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Thu, 18 Feb 2021 14:47:24 +0100 Subject: [PATCH] Concurrent lock: Fix modal's button to match new convention --- application/cmdbabstract.class.inc.php | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index 798066e867..a9209de364 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -5147,7 +5147,18 @@ EOF if ($('.lock_owned').length == 0) { $('.ui-layout-content').prepend('
'+data.message+'
'); - $('
'+data.popup_message+'
').dialog({title: $sJSTitle, modal: true, autoOpen: true, minWidth: 600, buttons:[ {text: $sJSOk, click: function() { $(this).dialog('close'); } }], close: function() { $(this).remove(); }}); + $('
'+data.popup_message+'
').dialog({ + title: $sJSTitle, + modal: true, + autoOpen: true, + minWidth: 600, + buttons:[{ + text: {$sJSOk}, + class: 'ibo-is-alternative', + click: function() { $(this).dialog('close'); } + }], + close: function() { $(this).remove(); } + }); } $('.object-details form .ibo-toolbar .ibo-button:not([name="cancel"])').prop('disabled', true); clearInterval(hOwnershipLockHandlerInterval); @@ -5157,7 +5168,18 @@ EOF if ($('.lock_owned').length == 0) { $('.ui-layout-content').prepend('
'+data.message+'
'); - $('
'+data.popup_message+'
').dialog({title: $sJSTitle, modal: true, autoOpen: true, minWidth: 600, buttons:[ {text: $sJSOk, click: function() { $(this).dialog('close'); } }], close: function() { $(this).remove(); }}); + $('
'+data.popup_message+'
').dialog({ + title: $sJSTitle, + modal: true, + autoOpen: true, + minWidth: 600, + buttons:[{ + text: $sJSOk, + class: 'ibo-is-alternative', + click: function() { $(this).dialog('close'); } + }], + close: function() { $(this).remove(); } + }); } $('.object-details form .ibo-toolbar .ibo-button:not([name="cancel"])').prop('disabled', true); clearInterval(hOwnershipLockHandlerInterval);