Fix insert multiple entries into email document failed at "Please wait ... loading"

This commit is contained in:
nathan 2023-08-01 09:11:09 -06:00
parent 38bd4bed1b
commit d5eb78c705
4 changed files with 11 additions and 9 deletions

View File

@ -1125,12 +1125,13 @@ class AddressbookApp extends EgwApp
var callback = function(button, value) {
if(button == Et2Dialog.OK_BUTTON)
{
var _action = jQuery.extend(true, {}, action);
var _action_data = jQuery.extend(true, {}, action.data);
if(value.infolog)
{
_action.data.menuaction += '&to_app=infolog&info_type=' + value.info_type;
_action_data.menuaction += '&to_app=infolog&info_type=' + value.info_type;
action.data = _action_data;
}
nm_action(_action, selected, target);
nm_action(action, selected, target);
}
};
let dialog = new Et2Dialog(this.egw);

View File

@ -1339,7 +1339,6 @@ export class Et2Dialog extends Et2Widget(SlotMixin(SlDialog))
retry.transformAttributes({
callback: function(button)
{
debugger;
switch(button)
{
case 'dialog[cancel]':
@ -1417,8 +1416,8 @@ export class Et2Dialog extends Et2Widget(SlotMixin(SlDialog))
}
// Disable cancel (it's too late), enable OK
dialog._overlayContentNode.querySelector('et2-button[button_id="' + Et2Dialog.CANCEL_BUTTON + '"]').setAttribute("disabled")
dialog._overlayContentNode.querySelector('et2-button[button_id="' + Et2Dialog.OK_BUTTON + '"]').removeAttribute("disabled")
dialog.querySelector('et2-button[button_id="' + Et2Dialog.CANCEL_BUTTON + '"]').setAttribute("disabled", "")
dialog.querySelector('et2-button[button_id="' + Et2Dialog.OK_BUTTON + '"]').removeAttribute("disabled")
if(!cancel && typeof _callback == "function")
{
_callback.call(dialog, true, response);

View File

@ -10,6 +10,8 @@
* @copyright EGroupware GmbH 2012-2021
*/
import {EgwActionManager} from "../egw_action/EgwActionManager";
/**
* Default action for nextmatch rows, runs action specified _action.data.nm_action: see nextmatch_widget::egw_actions()
*
@ -83,7 +85,7 @@ export function nm_action(_action, _senders, _target, _ids)
}
//console.log(_action); console.log(_senders);
var mgr = _action.getManager();
let mgr = _action instanceof EgwActionManager ? _action : _action.getManager();
var url = '#';
if (typeof _action.data.url != 'undefined')
@ -320,7 +322,7 @@ export function fetchAll(ids, nextmatch, callback)
callback.call(this, idsArr);
}
}
},this);
}, {});
count += 200;
} while (count < total)
return true;

View File

@ -2795,7 +2795,7 @@ table.egwGridView_outer thead tr th.noResize:hover {
}
.long_task .message.error {
color: white;
color: darkgray;
background-image: none;
}