mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Fix insert multiple entries into email document failed at "Please wait ... loading"
This commit is contained in:
parent
76c59d2103
commit
583072ce9d
@ -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);
|
||||
|
@ -1357,7 +1357,6 @@ export class Et2Dialog extends Et2Widget(SlotMixin(SlDialog))
|
||||
retry.transformAttributes({
|
||||
callback: function(button)
|
||||
{
|
||||
debugger;
|
||||
switch(button)
|
||||
{
|
||||
case 'dialog[cancel]':
|
||||
@ -1435,8 +1434,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);
|
||||
|
@ -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;
|
||||
|
@ -2795,7 +2795,7 @@ table.egwGridView_outer thead tr th.noResize:hover {
|
||||
}
|
||||
|
||||
.long_task .message.error {
|
||||
color: white;
|
||||
color: darkgray;
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user