mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 16:35:10 +00:00
* UI/WebServerResources/SchedulerUI.js (onMenuRawEvent, onMenuRawTask):
New callback to show the event/task content from the menu
* UI/Scheduler/UIxComponentEditor.m (rawAction):
New method that returns the object's raw content in a WOResponse.
* UI/Templates/SchedulerUI/UIxCal{Day,Month,Main,Week}View.wox:
New contextual menu item: Show Raw Source
* UI/WebServerResources/ContactsUI.js (onMenuRawContact):
Rework to use calendar/ics/raw
* UI/Contacts/UIxContactFolderActions.m (rawAction):
Removed / moved to UI/Contacts/UIxContactActions.m
* UI/Contacts/UIxContactActions.m (rawAction):
New method that returns the object's raw content in a WOResponse.
* UI/Templates/ContactsUI/UIxContactFoldersView.wox:
Show vCard content -> Show Raw Source
Monotone-Parent: e853157abbabf35bc95273da8bc10b2d3b142627
Monotone-Revision: 4e287287380938e20234ac951c09158c324b84b4
Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-07-09T14:17:07
This commit is contained in:
@@ -291,17 +291,12 @@ function onMenuExportContact (event) {
|
||||
}
|
||||
|
||||
function onMenuRawContact (event) {
|
||||
var selectedFolders = $("contactFolders").getSelectedNodes();
|
||||
var canExport = (selectedFolders[0].getAttribute("owner") != "nobody");
|
||||
if (canExport) {
|
||||
var selectedFolderId = $(selectedFolders[0]).readAttribute("id");
|
||||
var contactIds = document.menuTarget.collect(function(row) {
|
||||
return row.readAttribute("id");
|
||||
});
|
||||
var url = ApplicationBaseURL + selectedFolderId + "/raw"
|
||||
+ "?uid=" + contactIds.join("&uid=");
|
||||
openGenericWindow(url);
|
||||
}
|
||||
var cname = document.menuTarget.collect(function(row) {
|
||||
return row.readAttribute("id");
|
||||
});
|
||||
|
||||
openGenericWindow(URLForFolderID(Contact.currentAddressBook)
|
||||
+ "/" + cname + "/raw");
|
||||
}
|
||||
|
||||
function actionContactCallback(http) {
|
||||
|
||||
Reference in New Issue
Block a user