mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-13 04:15:11 +00:00
* UI/WebServerResources/generic.js (openGenericWindow):
New method that opens a simple new window. * UI/WebServerResources/ContactsUI.js (onMenuRawContact): New callback to show the vCard content from the menu. * UI/WebServerResources/ContactsUI.js (onContactMenuPrepareVisibility): Enable the export and raw functions only on vcards contacts. * UI/Templates/ContactsUI/UIxContactFoldersView.wox: New contextual menu item: Show vCard content * UI/Contacts/UIxContactFolderActions.m (rawAction): New method that returns the raw contact data for all the contact uids provided Monotone-Parent: f03db6cb5531dddabab4e8678d856fe593d3745d Monotone-Revision: e853157abbabf35bc95273da8bc10b2d3b142627 Monotone-Author: jraby@inverse.ca Monotone-Date: 2012-07-05T21:16:02
This commit is contained in:
@@ -206,6 +206,42 @@ function openUserFolderSelector(callback, type) {
|
||||
}
|
||||
}
|
||||
|
||||
function openGenericWindow(url, wId) {
|
||||
var div = $("popupFrame");
|
||||
if (div) {
|
||||
if (!div.hasClassName("small"))
|
||||
div.addClassName("small");
|
||||
var iframe = div.down("iframe");
|
||||
iframe.src = url;
|
||||
if (!wId)
|
||||
wId = "genericFrame";
|
||||
iframe.id = wId;;
|
||||
var bgDiv = $("bgFrameDiv");
|
||||
if (bgDiv) {
|
||||
bgDiv.show();
|
||||
}
|
||||
else {
|
||||
bgDiv = createElement("div", "bgFrameDiv");
|
||||
document.body.appendChild(bgDiv);
|
||||
}
|
||||
div.show();
|
||||
|
||||
return div;
|
||||
}
|
||||
else {
|
||||
if (!wId)
|
||||
wId = "_blank";
|
||||
else
|
||||
wId = sanitizeWindowName(wId);
|
||||
|
||||
var w = window.open(url, wId,
|
||||
"width=550,height=650,resizable=1,scrollbars=1,location=0");
|
||||
w.focus();
|
||||
|
||||
return w;
|
||||
}
|
||||
}
|
||||
|
||||
function openContactWindow(url, wId) {
|
||||
var div = $("popupFrame");
|
||||
if (div) {
|
||||
|
||||
Reference in New Issue
Block a user