* 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:
Jean Raby
2012-07-05 21:16:02 +00:00
parent 5639ee6180
commit c4d11cd916
8 changed files with 133 additions and 1 deletions
+36
View File
@@ -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) {