Author |
|
PatrikIden Newbie
Joined: 28 May 2012 Location: Sweden
Online Status: Offline Posts: 9
|
Posted: 28 May 2012 at 7:58am | IP Logged
|
|
|
Hello, I'm using Webmail in an inline frame, but when clicking on logout the script leaves the inlineframe an goes to fullscreen. How can i fix, so that when clicking logout the script stays in the inline frame?
Thank you.
I'v got it now.
|
Back to Top |
|
|
Laxity Newbie
Joined: 28 June 2012
Online Status: Offline Posts: 3
|
Posted: 28 June 2012 at 10:54pm | IP Logged
|
|
|
Hello, I have the same problem.
Can you tell me your hint??
Thank you.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 28 June 2012 at 11:14pm | IP Logged
|
|
|
In js/common/webmail.js file, line ~1213:
Code:
var oDocument = (parent) ? parent : document; |
|
|
should be replaced with:
Code:
var oDocument = document; |
|
|
Be sure to purge browser cache to apply changes.
The modification applies to current version of WebMail Lite PHP, it might be different with other versions, the idea would still be the same: use document.location rather than parent.location when logging out.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Laxity Newbie
Joined: 28 June 2012
Online Status: Offline Posts: 3
|
Posted: 28 June 2012 at 11:29pm | IP Logged
|
|
|
Hi Igor,
thanks for your help, but i use the ASP.Net Version and there i can't find this line.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 29 June 2012 at 1:12am | IP Logged
|
|
|
Indeed, it's a bit different there, see lines 814-818:
Code:
if (parent) {
parent.location = LoginUrl + '?mode=logout';
} else {
document.location = LoginUrl + '?mode=logout';
} |
|
|
and it should be replaced with:
Code:
document.location = LoginUrl + '?mode=logout'; |
|
|
There's a similar pattern right before this one, it's related to error output only, but still you might want to apply similar modification there as well.
|
Back to Top |
|
|
Laxity Newbie
Joined: 28 June 2012
Online Status: Offline Posts: 3
|
Posted: 29 June 2012 at 2:05am | IP Logged
|
|
|
Thanks Igor.
It works fine.
|
Back to Top |
|
|