mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-15 04:24:57 +01:00
Fix confirm dialog sometimes mis-placed initiating button in value
This commit is contained in:
parent
6d96e84df1
commit
a364060fc8
@ -1205,7 +1205,7 @@ export class Et2Dialog extends Et2Widget(SlotMixin(SlDialog))
|
||||
static confirm(_senders, _dialogMsg, _titleMsg, _postSubmit?)
|
||||
{
|
||||
let senders = _senders;
|
||||
let buttonId = _senders.id;
|
||||
let button = _senders;
|
||||
let dialogMsg = (typeof _dialogMsg != "undefined") ? _dialogMsg : '';
|
||||
let titleMsg = (typeof _titleMsg != "undefined") ? _titleMsg : '';
|
||||
let egw = _senders instanceof et2_widget ? _senders.egw() : undefined;
|
||||
@ -1215,7 +1215,7 @@ export class Et2Dialog extends Et2Widget(SlotMixin(SlDialog))
|
||||
{
|
||||
if(_postSubmit)
|
||||
{
|
||||
senders.getRoot().getInstanceManager().postSubmit(buttonId);
|
||||
senders.getRoot().getInstanceManager().postSubmit(button);
|
||||
}
|
||||
else if(senders.instanceOf(et2_button) && senders.getType() !== "buttononly")
|
||||
{
|
||||
@ -1225,7 +1225,9 @@ export class Et2Dialog extends Et2Widget(SlotMixin(SlDialog))
|
||||
}
|
||||
else
|
||||
{
|
||||
senders.getRoot().getInstanceManager().submit(buttonId);
|
||||
senders.clicked = true;
|
||||
senders.getRoot().getInstanceManager().submit(button);
|
||||
senders.clicked = false;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user