mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 09:38:48 +02:00
Feature/6154 - Confirmation modal issue (#489)
This commit is contained in:
@@ -372,6 +372,8 @@ CombodoModal.OpenConfirmationModal = function(oOptions, aData) {
|
||||
title: Dict.S('UI:Modal:DefaultConfirmationTitle'),
|
||||
content: '',
|
||||
do_not_show_again_pref_key: null,
|
||||
callback_on_confirm: null,
|
||||
callback_on_cancel: null,
|
||||
extra_options: {
|
||||
callback_on_modal_close: function () {
|
||||
$(this).dialog( "destroy" ); // destroy dialog object
|
||||
@@ -446,7 +448,7 @@ CombodoModal.OpenInformativeModal = function(sMessage, sSeverity, oOptions) {
|
||||
buttons: {
|
||||
ok: {
|
||||
text: Dict.S('UI:Button:Ok'),
|
||||
// classes: ['ibo-is-regular', 'ibo-is-neutral'],
|
||||
classes: ['ibo-is-regular', 'ibo-is-neutral'],
|
||||
callback_on_click: function () {
|
||||
$(this).dialog('close');
|
||||
}
|
||||
|
||||
@@ -40,13 +40,11 @@
|
||||
CombodoModal.OpenConfirmationModal({
|
||||
title: sTitle,
|
||||
content: sMessage,
|
||||
callback_on_confirm: ActionRowFunction{{ oUIBlock.GetId() }}{{ loop.index0 }},
|
||||
buttons: {
|
||||
confirm: {
|
||||
text: sLabel,
|
||||
classes: [sConfirmButtonClass],
|
||||
callback_on_click:{
|
||||
ActionRowFunction{{ oUIBlock.GetId() }}{{ loop.index0 }}
|
||||
}
|
||||
classes: [sConfirmButtonClass]
|
||||
}
|
||||
},
|
||||
{% if aAction.confirmation.do_not_show_again_pref_key is defined %}
|
||||
|
||||
Reference in New Issue
Block a user