mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Fix open compose windows created new drafts after main window was reloaded
This commit is contained in:
parent
3ce5aebe12
commit
ec388c955a
@ -488,8 +488,7 @@ window.egw_rejoin = function ()
|
||||
{
|
||||
opener.addEventListener("load", () =>
|
||||
{
|
||||
/* It takes more than just re-setting this.framework to get things working again
|
||||
|
||||
/* It takes more than just re-setting this.framework to get everything working again, but this helps */
|
||||
let reconnecting = egw(this).message("Reconnecting...");
|
||||
window.setTimeout(() =>
|
||||
{
|
||||
@ -499,7 +498,6 @@ window.egw_rejoin = function ()
|
||||
this.framework = this.opener.framework;
|
||||
this.framework.egw_appWindow().console.log("Popup %s rejoined", this.location.href);
|
||||
}, 5000);
|
||||
*/
|
||||
});
|
||||
}.bind(window), 500);
|
||||
}
|
@ -3906,9 +3906,10 @@ app.classes.mail = AppJS.extend(
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
self.egw.json('mail.mail_compose.ajax_saveAsDraft',[content, action],function(_data){
|
||||
var res = self.savingDraft_response(_data,action);
|
||||
// Send request through framework main window, so it works even if the main window is reloaded
|
||||
framework.egw_appWindow().egw.json('mail.mail_compose.ajax_saveAsDraft', [content, action], function (_data)
|
||||
{
|
||||
var res = self.savingDraft_response(_data, action);
|
||||
if (res)
|
||||
{
|
||||
_resolve();
|
||||
|
Loading…
Reference in New Issue
Block a user