mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-23 05:49:31 +00:00
Monotone-Parent: de445c20292c49e37a9bba2be90480d1d34799ae
Monotone-Revision: dae312b4bfd2084618c23a6232f43e0a9c5d7938 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-06T22:07:39 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -218,8 +218,13 @@ function openUserFolderSelector(callback, type) {
|
||||
}
|
||||
|
||||
function openContactWindow(url, wId) {
|
||||
if (!wId)
|
||||
wId = "" + (new Date().getTime());
|
||||
if (typeof wId == "undefined")
|
||||
wId = "_blank";
|
||||
else {
|
||||
var r = new RegExp("[\.\/-]", "g");
|
||||
wId = wId.replace(r, "_");
|
||||
}
|
||||
|
||||
var w = window.open(url, wId,
|
||||
"width=450,height=600,resizable=0,location=0");
|
||||
w.focus();
|
||||
@@ -230,12 +235,15 @@ function openContactWindow(url, wId) {
|
||||
function openMailComposeWindow(url, wId) {
|
||||
var parentWindow = this;
|
||||
|
||||
if (!wId)
|
||||
wId = "" + (new Date().getTime());
|
||||
else
|
||||
if (typeof wId == "undefined")
|
||||
wId = "_blank";
|
||||
else {
|
||||
var r = new RegExp("[\.\/-]", "g");
|
||||
wId = wId.replace(r, "_");
|
||||
if (document.body.hasClassName("popup"))
|
||||
parentWindow = window.opener;
|
||||
|
||||
}
|
||||
|
||||
var w = parentWindow.open(url, wId,
|
||||
"width=680,height=520,resizable=1,scrollbars=1,toolbar=0,"
|
||||
+ "location=0,directories=0,status=0,menubar=0"
|
||||
|
||||
Reference in New Issue
Block a user